diff --git a/test/flattenDepth/flattenDepth.js b/test/flattenDepth/flattenDepth.js deleted file mode 100644 index 9e4606a75..000000000 --- a/test/flattenDepth/flattenDepth.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = flattenDepth = (arr, depth = 1) => -depth != 1 -? arr.reduce((a, v) => a.concat(Array.isArray(v) ? flattenDepth(v, depth - 1) : v), []) -: arr.reduce((a, v) => a.concat(v), []); \ No newline at end of file diff --git a/test/flattenDepth/flattenDepth.test.js b/test/flattenDepth/flattenDepth.test.js deleted file mode 100644 index 113fbce1e..000000000 --- a/test/flattenDepth/flattenDepth.test.js +++ /dev/null @@ -1,13 +0,0 @@ -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(args..), 'Expected'); - //t.equal(flattenDepth(args..), 'Expected'); - //t.false(flattenDepth(args..), 'Expected'); - //t.throws(flattenDepth(args..), 'Expected'); - t.end(); -}); \ No newline at end of file