This commit is contained in:
Ilya Kantor 2016-07-22 20:47:41 +03:00
parent 057783d216
commit 3f5f2cac8b
324 changed files with 669 additions and 286 deletions

View file

@ -0,0 +1,13 @@
describe("count", function() {
it("counts the number of properties", function() {
assert.equal( count({a: 1, b: 2}), 2 );
});
it("returns 0 for an empty object", function() {
assert.equal( count({}), 0 );
});
it("ignores symbolic properties", function() {
assert.equal( count({ [Symbol('id')]: 1 }), 0 );
});
});