Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
9
test/RGBToHex/RGBToHex.test.js
Normal file
9
test/RGBToHex/RGBToHex.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
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.");
|
||||
|
||||
Reference in New Issue
Block a user