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