From 9fd2ec582fde452ee8b4091d0a4332d11de69af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 10 Jan 2018 14:27:06 +0100 Subject: [PATCH] typo at objectToPairs & add test --- snippets/objectToPairs.md | 2 +- test/objectToPairs/objectToPairs.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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');