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