Update randomHexColorCode.js

Add missing semicolon
This commit is contained in:
Rohit Tanwar
2018-02-16 14:23:11 +05:30
committed by GitHub
parent 0776ed5c4d
commit 77031a7e57

View File

@ -8,7 +8,7 @@ test('Testing randomHexColorCode', (t) => {
//t.deepEqual(randomHexColorCode(args..), 'Expected');
t.equal(randomHexColorCode().length, 7);
t.true(randomHexColorCode().startsWith('#'),'The color code starts with "#"');
t.true(randomHexColorCode().slice(1).match(/[^0123456789abcdef]/i) === null)
t.true(randomHexColorCode().slice(1).match(/[^0123456789abcdef]/i) === null,'The color code contains only valid hex-digits');
//t.false(randomHexColorCode(args..), 'Expected');
//t.throws(randomHexColorCode(args..), 'Expected');
t.end();