Files
starface-outlook-sync-addin/node_modules/@fluentui/utilities/lib-commonjs/getNativeElementProps.test.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

11 lines
733 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var getNativeElementProps_1 = require("./getNativeElementProps");
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