Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
8
test/extendHex/extendHex.js
Normal file
8
test/extendHex/extendHex.js
Normal file
@ -0,0 +1,8 @@
|
||||
const extendHex = shortHex =>
|
||||
'#' +
|
||||
shortHex
|
||||
.slice(shortHex.startsWith('#') ? 1 : 0)
|
||||
.split('')
|
||||
.map(x => x + x)
|
||||
.join('');
|
||||
module.exports = extendHex;
|
||||
Reference in New Issue
Block a user