mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-23 04:00:04 +08:00
Don't depend directly on the 'react-dom' module as it will be prebuilt in 15.4. Leave server-side rendering to 'react-dom/server'.
16 lines
395 B
JavaScript
16 lines
395 B
JavaScript
/* eslint-env jasmine, jest */
|
|
|
|
import { getApplication } from '../renderApplication';
|
|
import React from 'react';
|
|
|
|
const component = () => <div />;
|
|
|
|
describe('apis/AppRegistry/renderApplication', () => {
|
|
test('getApplication', () => {
|
|
const { element, stylesheet } = getApplication(component, {});
|
|
|
|
expect(element).toBeTruthy();
|
|
expect(stylesheet.type).toEqual('style');
|
|
});
|
|
});
|