@vandrei977/react-native-render-html
Version:
The hackable, full-featured Open Source HTML rendering solution for React Native.
11 lines (9 loc) • 345 B
text/typescript
import selectSharedProps from '../selectSharedProps';
describe('selectSharedProps', () => {
it('should default to default values', () => {
expect(selectSharedProps({ debug: undefined }).debug).toEqual(false);
});
it('should retain non-nil values', () => {
expect(selectSharedProps({ debug: true }).debug).toEqual(true);
});
});