ran npm run tdd

This commit is contained in:
King
2018-01-15 10:58:44 -05:00
parent 56f977bf63
commit 58c65ecf1e
28 changed files with 247 additions and 0 deletions

5
test/mapKeys/mapKeys.js Normal file
View File

@ -0,0 +1,5 @@
module.exports = mapKeys = (obj, fn) =>
Object.keys(obj).reduce((acc, k) => {
acc[fn(obj[k], k, obj)] = obj[k];
return acc;
}, {});

View File

@ -0,0 +1,13 @@
const test = require('tape');
const mapKeys = require('./mapKeys.js');
test('Testing mapKeys', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof mapKeys === 'function', 'mapKeys is a Function');
//t.deepEqual(mapKeys(args..), 'Expected');
//t.equal(mapKeys(args..), 'Expected');
//t.false(mapKeys(args..), 'Expected');
//t.throws(mapKeys(args..), 'Expected');
t.end();
});