diff --git a/test/union/union.test.js b/test/union/union.test.js index 40f1db354..1426f4a28 100644 --- a/test/union/union.test.js +++ b/test/union/union.test.js @@ -5,6 +5,7 @@ test('Testing union', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof union === 'function', 'union is a Function'); + t.deepEqual(union([1, 2, 3], [4, 3, 2]), [1, 2, 3, 4], "Returns every element that exists in any of the two arrays once"); //t.deepEqual(union(args..), 'Expected'); //t.equal(union(args..), 'Expected'); //t.false(union(args..), 'Expected'); diff --git a/test/without/without.test.js b/test/without/without.test.js index 7d3ff120d..f731a0714 100644 --- a/test/without/without.test.js +++ b/test/without/without.test.js @@ -5,6 +5,7 @@ test('Testing without', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof without === 'function', 'without is a Function'); + t.deepEqual(without([2, 1, 2, 3], 1, 2), [3], "Filters out the elements of an array, that have one of the specified values."); //t.deepEqual(without(args..), 'Expected'); //t.equal(without(args..), 'Expected'); //t.false(without(args..), 'Expected');