Test files linted
This commit is contained in:
@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user