Files
30-seconds-of-code/test/flattenDepth/flattenDepth.test.js
Stefan Feješ 894eebb716 add 2 tests, flattenDepth & formatDuration
update CamelCase test cases
2018-01-10 17:03:09 +01:00

14 lines
612 B
JavaScript

const test = require('tape');
const flattenDepth = require('./flattenDepth.js');
test('Testing flattenDepth', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof flattenDepth === 'function', 'flattenDepth is a Function');
t.deepEqual(flattenDepth([1, [2], 3, 4]), [1, 2, 3, 4], "Flattens an array up to the specified depth");
//t.deepEqual(flattenDepth(args..), 'Expected');
//t.equal(flattenDepth(args..), 'Expected');
//t.false(flattenDepth(args..), 'Expected');
//t.throws(flattenDepth(args..), 'Expected');
t.end();
});