12 lines
820 B
JavaScript
12 lines
820 B
JavaScript
define(["require", "exports", "./getNativeElementProps"], function (require, exports, getNativeElementProps_1) {
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
describe('getNativeElementProps', function () {
|
|
it('can filter native element properties', function () {
|
|
expect((0, getNativeElementProps_1.getNativeElementProps)('div', { id: '123', checked: true })).toEqual({ id: '123' });
|
|
expect((0, getNativeElementProps_1.getNativeElementProps)('input', { id: '123', checked: true })).toEqual({ id: '123', checked: true });
|
|
expect((0, getNativeElementProps_1.getNativeElementProps)('input', { id: '123', checked: true }, ['id'])).toEqual({ checked: true });
|
|
});
|
|
});
|
|
});
|
|
//# sourceMappingURL=getNativeElementProps.test.js.map
|