Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
10
test/isBoolean/isBoolean.test.js
Normal file
10
test/isBoolean/isBoolean.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const isBoolean = require('./isBoolean.js');
|
||||
|
||||
|
||||
test('isBoolean is a Function', () => {
|
||||
expect(isBoolean).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(isBoolean(null), false, "passed value is not a boolean");
|
||||
t.equal(isBoolean(false), true, "passed value is not a boolean");
|
||||
|
||||
Reference in New Issue
Block a user