Files
30-seconds-of-code/test/RGBToHex/RGBToHex.test.js
Angelos Chalaris 4f7da1be9b Test migration to jest by hand
Apparently using regular expressions is way easier.
2018-06-18 15:15:56 +03:00

10 lines
274 B
JavaScript

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.");