Test cleanup and fixes [i-l]
This commit is contained in:
@ -1,14 +1,13 @@
|
||||
const expect = require('expect');
|
||||
const isFunction = require('./isFunction.js');
|
||||
|
||||
|
||||
test('isFunction is a Function', () => {
|
||||
test('isFunction is a Function', () => {
|
||||
expect(isFunction).toBeInstanceOf(Function);
|
||||
});
|
||||
test('passed value is a function', () => {
|
||||
expect(isFunction(x => x)).toBe(true)
|
||||
test('passed value is a function', () => {
|
||||
expect(isFunction(x => x)).toBeTruthy();
|
||||
});
|
||||
test('passed value is not a function', () => {
|
||||
expect(isFunction('x')).toBe(false)
|
||||
test('passed value is not a function', () => {
|
||||
expect(isFunction('x')).toBeFalsy();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user