add 2 tests, isNull & isNumber
This commit is contained in:
@ -5,6 +5,8 @@ test('Testing isNull', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof isNull === 'function', 'isNull is a Function');
|
||||
t.equal(isNull(null), true, "passed argument is a null");
|
||||
t.equal(isNull(NaN), false, "passed argument is a null");
|
||||
//t.deepEqual(isNull(args..), 'Expected');
|
||||
//t.equal(isNull(args..), 'Expected');
|
||||
//t.false(isNull(args..), 'Expected');
|
||||
|
||||
@ -5,6 +5,9 @@ test('Testing isNumber', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof isNumber === 'function', 'isNumber is a Function');
|
||||
t.equal(isNumber(1), true, "passed argument is a number");
|
||||
t.equal(isNumber('1'), false, "passed argument is not a number");
|
||||
|
||||
//t.deepEqual(isNumber(args..), 'Expected');
|
||||
//t.equal(isNumber(args..), 'Expected');
|
||||
//t.false(isNumber(args..), 'Expected');
|
||||
|
||||
Reference in New Issue
Block a user