add 2 tests, isNull & isNumber

This commit is contained in:
Stefan Feješ
2018-01-10 15:30:16 +01:00
parent 1cd9b404cb
commit d508ce2ff6
2 changed files with 5 additions and 0 deletions

View File

@ -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');

View File

@ -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');