Updated the test system
This commit is contained in:
9
test/deepFlatten.test.js
Normal file
9
test/deepFlatten.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const {deepFlatten} = require('./_30s.js');
|
||||
|
||||
test('deepFlatten is a Function', () => {
|
||||
expect(deepFlatten).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Deep flattens an array', () => {
|
||||
expect(deepFlatten([1, [2], [[3], 4], 5])).toEqual([1, 2, 3, 4, 5]);
|
||||
});
|
||||
Reference in New Issue
Block a user