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('');
|
||||
Reference in New Issue
Block a user