9 lines
568 B
JavaScript
9 lines
568 B
JavaScript
|
import { getNativeElementProps } from './getNativeElementProps';
|
||
|
describe('getNativeElementProps', function () {
|
||
|
it('can filter native element properties', function () {
|
||
|
expect(getNativeElementProps('div', { id: '123', checked: true })).toEqual({ id: '123' });
|
||
|
expect(getNativeElementProps('input', { id: '123', checked: true })).toEqual({ id: '123', checked: true });
|
||
|
expect(getNativeElementProps('input', { id: '123', checked: true }, ['id'])).toEqual({ checked: true });
|
||
|
});
|
||
|
});
|
||
|
//# sourceMappingURL=getNativeElementProps.test.js.map
|