refactor
This commit is contained in:
parent
31b5af1580
commit
514340ef9c
181 changed files with 1261 additions and 1101 deletions
|
@ -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 );
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue