update words test,
My bad I didn't use deepEqual when comparing ...
This commit is contained in:
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user