mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-05-07 10:33:08 +08:00
13 lines
486 B
JavaScript
13 lines
486 B
JavaScript
/* eslint-env jasmine, jest */
|
|
|
|
import createReactStyleObject from '../createReactStyleObject';
|
|
|
|
describe('apis/StyleSheet/createReactStyleObject', () => {
|
|
test('converts ReactNative style to ReactDOM style', () => {
|
|
const reactNativeStyle = { display: 'flex', marginVertical: 0, opacity: 0 };
|
|
const expectedStyle = { display: 'flex', marginTop: '0px', marginBottom: '0px', opacity: 0 };
|
|
|
|
expect(createReactStyleObject(reactNativeStyle)).toEqual(expectedStyle);
|
|
});
|
|
});
|