Files
react-native-web/src/apis/AppRegistry/__tests__/renderApplication-test.js
Nicolas Gallagher deb0a85440 [change] AppRegistry.getApplication returns React elements
This changes the return value of 'getApplication' so that the
application element and stylesheets are all available as React elements.
Also changes StyleSheet's 'renderToString' to 'getStyleSheets'.

Fix #504
2017-06-14 10:41:20 -07:00

16 lines
406 B
JavaScript

/* eslint-env jasmine, jest */
import { getApplication } from '../renderApplication';
import React from 'react';
const RootComponent = () => <div />;
describe('apis/AppRegistry/renderApplication', () => {
test('getApplication', () => {
const { element, stylesheets } = getApplication(RootComponent, {});
expect(element).toMatchSnapshot();
expect(stylesheets).toMatchSnapshot();
});
});