Test cleanup and fixes [s-t]

This commit is contained in:
Angelos Chalaris
2018-06-18 18:37:35 +03:00
parent ba3e684a27
commit 9cf2c4680c
53 changed files with 286 additions and 409 deletions

View File

@ -1,14 +1,12 @@
const expect = require('expect');
const size = require('./size.js');
test('size is a Function', () => {
test('size is a Function', () => {
expect(size).toBeInstanceOf(Function);
});
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([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)
test('Get size of arrays, objects or strings.', () => {
expect(size({ one: 1, two: 2, three: 3 })).toBe(3);
});