diff --git a/test/getURLParameters/getURLParameters.test.js b/test/getURLParameters/getURLParameters.test.js index 26c16be40..4c9463228 100644 --- a/test/getURLParameters/getURLParameters.test.js +++ b/test/getURLParameters/getURLParameters.test.js @@ -5,6 +5,7 @@ test('Testing getURLParameters', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof getURLParameters === 'function', 'getURLParameters is a Function'); + t.deepEqual(getURLParameters('http://url.com/page?name=Adam&surname=Smith'), {name: 'Adam', surname: 'Smith'}, "Returns an object containing the parameters of the current URL"); //t.deepEqual(getURLParameters(args..), 'Expected'); //t.equal(getURLParameters(args..), 'Expected'); //t.false(getURLParameters(args..), 'Expected'); diff --git a/test/groupBy/groupBy.test.js b/test/groupBy/groupBy.test.js index 5cea893b4..1470c4070 100644 --- a/test/groupBy/groupBy.test.js +++ b/test/groupBy/groupBy.test.js @@ -5,6 +5,8 @@ test('Testing groupBy', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof groupBy === 'function', 'groupBy is a Function'); + t.deepEqual(groupBy([6.1, 4.2, 6.3], Math.floor), {4: [4.2], 6: [6.1, 6.3]}, "Groups the elements of an array based on the given function"); + t.deepEqual(groupBy(['one', 'two', 'three'], 'length'), {3: ['one', 'two'], 5: ['three']}, "Groups the elements of an array based on the given function"); //t.deepEqual(groupBy(args..), 'Expected'); //t.equal(groupBy(args..), 'Expected'); //t.false(groupBy(args..), 'Expected');