Test files linted

This commit is contained in:
Angelos Chalaris
2018-08-03 10:39:26 +03:00
parent 5ef1fab5fd
commit cc7b76d0b3
153 changed files with 754 additions and 463 deletions

View File

@ -1,7 +1,6 @@
const expect = require('expect');
const zip = require('./zip.js');
test('zip is a Function', () => {
expect(zip).toBeInstanceOf(Function);
});
@ -24,8 +23,12 @@ test('zip([a], [1, 2], [true, false]) returns an Array', () => {
expect(Array.isArray(zip(['a'], [1, 2], [true, false]))).toBeTruthy();
});
test('zip(null) throws an error', () => {
expect(() => {zip(null);}).toThrow();
expect(() => {
zip(null);
}).toThrow();
});
test('zip(undefined) throws an error', () => {
expect(() => {zip(undefined);}).toThrow();
expect(() => {
zip(undefined);
}).toThrow();
});