mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
10 lines
310 B
JavaScript
10 lines
310 B
JavaScript
describe('iD.utilObjectOmit', function() {
|
|
it('omits keys', function() {
|
|
var t = { a: 1, b: 2 };
|
|
expect(iD.utilObjectOmit(t, [])).to.eql({ a: 1, b: 2 });
|
|
expect(iD.utilObjectOmit(t, ['a'])).to.eql({ b: 2 });
|
|
expect(iD.utilObjectOmit(t, ['a', 'b'])).to.eql({});
|
|
});
|
|
});
|
|
|