Files
30-seconds-of-code/test/isBoolean/isBoolean.test.js
2018-06-18 17:31:56 +03:00

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();
});