Codacy issue fixes

This commit is contained in:
Angelos Chalaris
2018-06-18 21:18:53 +03:00
parent ba3fcbb95a
commit 17fb304f04
32 changed files with 45 additions and 45 deletions

View File

@ -8,16 +8,16 @@ test('chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] ', () => {
expect(chunk([1, 2, 3, 4, 5], 2)).toEqual([[1,2],[3,4],[5]]);
});
test('chunk([]) returns []', () => {
expect(chunk([])).toEqual([])
expect(chunk([])).toEqual([]);
});
test('chunk(123) returns []', () => {
expect(chunk(123)).toEqual([])
expect(chunk(123)).toEqual([]);
});
test('chunk({ a: 123}) returns []', () => {
expect(chunk({ a: 123})).toEqual([])
expect(chunk({ a: 123})).toEqual([]);
});
test('chunk(string, 2) returns [ st, ri, ng ]', () => {
expect(chunk('string', 2)).toEqual( [ 'st', 'ri', 'ng' ])
expect(chunk('string', 2)).toEqual( [ 'st', 'ri', 'ng' ]);
});
test('chunk() throws an error', () => {
expect(() => {chunk();}).toThrow();