Test cleanup and fixes [c-d]
This commit is contained in:
@ -5,5 +5,7 @@ const RGBToHex = require('./RGBToHex.js');
|
||||
test('RGBToHex is a Function', () => {
|
||||
expect(RGBToHex).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(RGBToHex(255, 165, 1), 'ffa501', "Converts the values of RGB components to a color code.");
|
||||
test('Converts the values of RGB components to a color code.', () => {
|
||||
expect(RGBToHex(255, 165, 1)).toBe('ffa501')
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user