Test cleanup and fixes [c-d]
This commit is contained in:
@ -5,6 +5,10 @@ const size = require('./size.js');
|
||||
test('size is a Function', () => {
|
||||
expect(size).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(size([1, 2, 3, 4, 5]), 5, "Get size of arrays, objects or strings.");
|
||||
t.equal(size({ one: 1, two: 2, three: 3 }), 3, "Get size of arrays, objects or strings.");
|
||||
test('Get size of arrays, objects or strings.', () => {
|
||||
expect(size([1, 2, 3, 4, 5])).toBe(5)
|
||||
});
|
||||
test('Get size of arrays, objects or strings.', () => {
|
||||
expect(size({ one: 1, two: 2, three: 3 })).toBe(3)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user