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