mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-23 20:10:41 +08:00
20 lines
474 B
JavaScript
20 lines
474 B
JavaScript
/* eslint-env jasmine, jest */
|
|
|
|
import resolveTextShadow from '../resolveTextShadow';
|
|
|
|
describe('apis/StyleSheet/resolveTextShadow', () => {
|
|
test('textShadowOffset', () => {
|
|
const resolvedStyle = {};
|
|
const style = {
|
|
textShadowColor: 'red',
|
|
textShadowOffset: { width: 1, height: 2 },
|
|
textShadowRadius: 5
|
|
};
|
|
resolveTextShadow(resolvedStyle, style);
|
|
|
|
expect(resolvedStyle).toEqual({
|
|
textShadow: '1px 2px 5px red'
|
|
});
|
|
});
|
|
});
|