13 lines
350 B
JavaScript
13 lines
350 B
JavaScript
const expect = require('expect');
|
|
const isBoolean = require('./isBoolean.js');
|
|
|
|
test('isBoolean is a Function', () => {
|
|
expect(isBoolean).toBeInstanceOf(Function);
|
|
});
|
|
test('passed value is not a boolean', () => {
|
|
expect(isBoolean(null)).toBeFalsy();
|
|
});
|
|
test('passed value is not a boolean', () => {
|
|
expect(isBoolean(false)).toBeTruthy();
|
|
});
|