work
This commit is contained in:
parent
057783d216
commit
3f5f2cac8b
324 changed files with 669 additions and 286 deletions
11
1-js/3-object-basics/1-object/3-is-empty/_js.view/test.js
Normal file
11
1-js/3-object-basics/1-object/3-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