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