Files
30-seconds-of-code/test/words/words.test.js
Stefan Feješ 02d59949c3 add 2 tests, yesNo and unescapeHTML
There is a bug with words.test (I've commented on it)
2018-01-10 11:24:21 +01:00

14 lines
547 B
JavaScript

const test = require('tape');
const words = require('./words.js');
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(args..), 'Expected');
//t.equal(words(args..), 'Expected');
//t.false(words(args..), 'Expected');
//t.throws(words(args..), 'Expected');
t.end();
});