ok
This commit is contained in:
parent
f1b7de040a
commit
2b874a73be
59 changed files with 1227 additions and 1232 deletions
11
1-js/4-data-structures/4-object/2-is-empty/_js.view/test.js
Normal file
11
1-js/4-data-structures/4-object/2-is-empty/_js.view/test.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
describe("isEmpty", function() {
|
||||
it("returns true for an empty object", function() {
|
||||
assert.isTrue(isEmpty({}));
|
||||
});
|
||||
|
||||
it("returns false if a property exists", function() {
|
||||
assert.isFalse(isEmpty({
|
||||
anything: false
|
||||
}));
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue