From 09fe99d66df446e4f5d15a69ba6981222cf79dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 10 Jan 2018 11:47:47 +0100 Subject: [PATCH] update words test, My bad I didn't use deepEqual when comparing ... --- test/words/words.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/words/words.test.js b/test/words/words.test.js index b64edd235..f15d1446f 100644 --- a/test/words/words.test.js +++ b/test/words/words.test.js @@ -5,7 +5,9 @@ test('Testing words', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof words === 'function', 'words is a Function'); - // t.equal(words('I love javaScript!!'), ["I", "love", "javaScript"], "Returns words from a string"); + t.deepEqual(words('I love javaScript!!'), ["I", "love", "javaScript"], "Returns words from a string"); + t.deepEqual(words('python, javaScript & coffee'), ["python", "javaScript", "coffee"], "Returns words from a string"); + //t.deepEqual(words(args..), 'Expected'); //t.equal(words(args..), 'Expected'); //t.false(words(args..), 'Expected');