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 324bd72a49
commit 85161f3e2d

View File

@ -8,8 +8,8 @@ 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();
});
});