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

11 lines
312 B
JavaScript

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