diff --git a/snippets/objectToPairs.md b/snippets/objectToPairs.md index 18eb91ead..0f0cf7ffe 100644 --- a/snippets/objectToPairs.md +++ b/snippets/objectToPairs.md @@ -9,5 +9,5 @@ const objectToPairs = obj => Object.keys(obj).map(k => [k, obj[k]]); ``` ```js -objectToPairs({ a: 1, b: 2 }); // [['a',1],['b',2]]) +objectToPairs({ a: 1, b: 2 }); // [['a',1],['b',2]] ``` diff --git a/test/objectToPairs/objectToPairs.test.js b/test/objectToPairs/objectToPairs.test.js index 2f15ae40f..087092236 100644 --- a/test/objectToPairs/objectToPairs.test.js +++ b/test/objectToPairs/objectToPairs.test.js @@ -5,6 +5,7 @@ test('Testing objectToPairs', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof objectToPairs === 'function', 'objectToPairs is a Function'); + t.deepEqual(objectToPairs({ a: 1, b: 2 }), [['a',1],['b',2]], "Creates an array of key-value pair arrays from an object."); //t.deepEqual(objectToPairs(args..), 'Expected'); //t.equal(objectToPairs(args..), 'Expected'); //t.false(objectToPairs(args..), 'Expected');