update words test,

My bad I didn't use deepEqual when comparing ...
This commit is contained in:
Stefan Feješ
2018-01-10 11:47:47 +01:00
parent 8b7a3c614d
commit 09fe99d66d

View File

@ -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');