mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 09:04:02 +02:00
@@ -0,0 +1,9 @@
|
||||
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({});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user