ran npm run tdd & generated TDD
This commit is contained in:
5
test/forEachRight/forEachRight.js
Normal file
5
test/forEachRight/forEachRight.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = (arr, callback) =>
|
||||
arr
|
||||
.slice(0)
|
||||
.reverse()
|
||||
.forEach(callback);
|
||||
13
test/forEachRight/forEachRight.test.js
Normal file
13
test/forEachRight/forEachRight.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
const test = require('tape');
|
||||
const forEachRight = require('./forEachRight.js');
|
||||
|
||||
test('Testing forEachRight', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof forEachRight === 'function', 'forEachRight is a Function');
|
||||
//t.deepEqual(forEachRight(args..), 'Expected');
|
||||
//t.equal(forEachRight(args..), 'Expected');
|
||||
//t.false(forEachRight(args..), 'Expected');
|
||||
//t.throws(forEachRight(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user