Updated the test system
This commit is contained in:
12
test/isNumber.test.js
Normal file
12
test/isNumber.test.js
Normal file
@ -0,0 +1,12 @@
|
||||
const expect = require('expect');
|
||||
const {isNumber} = require('./_30s.js');
|
||||
|
||||
test('isNumber is a Function', () => {
|
||||
expect(isNumber).toBeInstanceOf(Function);
|
||||
});
|
||||
test('passed argument is a number', () => {
|
||||
expect(isNumber(1)).toBeTruthy();
|
||||
});
|
||||
test('passed argument is not a number', () => {
|
||||
expect(isNumber('1')).toBeFalsy();
|
||||
});
|
||||
Reference in New Issue
Block a user