mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-24 04:25:27 +08:00
24 lines
489 B
JavaScript
24 lines
489 B
JavaScript
/* eslint-env mocha */
|
|
|
|
import assert from 'assert'
|
|
import React from '..'
|
|
|
|
suite('ReactNativeWeb', () => {
|
|
suite('exports', () => {
|
|
test('React', () => {
|
|
assert.ok(React)
|
|
})
|
|
|
|
test('ReactDOM methods', () => {
|
|
assert.ok(React.findDOMNode)
|
|
assert.ok(React.render)
|
|
assert.ok(React.unmountComponentAtNode)
|
|
})
|
|
|
|
test('ReactDOM/server methods', () => {
|
|
assert.ok(React.renderToString)
|
|
assert.ok(React.renderToStaticMarkup)
|
|
})
|
|
})
|
|
})
|