generate new test that did already exist & update all module snippets with declaration
This commit is contained in:
1
test/removeVowels/removeVowels.js
Normal file
1
test/removeVowels/removeVowels.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = removeVowels = (str, repl = '') => str.replace(/[aeiou]/gi,repl);
|
||||
13
test/removeVowels/removeVowels.test.js
Normal file
13
test/removeVowels/removeVowels.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
const test = require('tape');
|
||||
const removeVowels = require('./removeVowels.js');
|
||||
|
||||
test('Testing removeVowels', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof removeVowels === 'function', 'removeVowels is a Function');
|
||||
//t.deepEqual(removeVowels(args..), 'Expected');
|
||||
//t.equal(removeVowels(args..), 'Expected');
|
||||
//t.false(removeVowels(args..), 'Expected');
|
||||
//t.throws(removeVowels(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user