Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
5
test/randomHexColorCode/randomHexColorCode.js
Normal file
5
test/randomHexColorCode/randomHexColorCode.js
Normal file
@ -0,0 +1,5 @@
|
||||
const randomHexColorCode = () => {
|
||||
let n = (Math.random() * 0xfffff * 1000000).toString(16);
|
||||
return '#' + n.slice(0, 6);
|
||||
};
|
||||
module.exports = randomHexColorCode;
|
||||
Reference in New Issue
Block a user