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