Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
@ -15,5 +15,5 @@ bgBlue: `\x1b[44m${args.join(' ')}\x1b[0m`,
|
||||
bgMagenta: `\x1b[45m${args.join(' ')}\x1b[0m`,
|
||||
bgCyan: `\x1b[46m${args.join(' ')}\x1b[0m`,
|
||||
bgWhite: `\x1b[47m${args.join(' ')}\x1b[0m`
|
||||
});
|
||||
|
||||
module.exports = colorize;
|
||||
@ -1,8 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const colorize = require('./colorize.js');
|
||||
|
||||
test('Testing colorize', () => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
expect(typeof colorize === 'function').toBeTruthy();
|
||||
|
||||
test('colorize is a Function', () => {
|
||||
expect(colorize).toBeInstanceOf(Function);
|
||||
});
|
||||
t.pass('Tested on 09/02/2018 by @chalarangelo');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user