add 2 tests, filterNonUnique & flatten

This commit is contained in:
Stefan Feješ
2018-01-10 17:05:11 +01:00
parent 894eebb716
commit 736f59bc01
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ test('Testing filterNonUnique', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof filterNonUnique === 'function', 'filterNonUnique is a Function');
t.deepEqual(filterNonUnique([1, 2, 2, 3, 4, 4, 5]), [1,3,5], "Filters out the non-unique values in an array");
//t.deepEqual(filterNonUnique(args..), 'Expected');
//t.equal(filterNonUnique(args..), 'Expected');
//t.false(filterNonUnique(args..), 'Expected');

View File

@ -5,6 +5,7 @@ test('Testing flatten', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof flatten === 'function', 'flatten is a Function');
t.deepEqual(flatten([1, [2], 3, 4]), [1, 2, 3, 4], "Flattens an array");
//t.deepEqual(flatten(args..), 'Expected');
//t.equal(flatten(args..), 'Expected');
//t.false(flatten(args..), 'Expected');