add 2 tests, isArray & isBoolean

This commit is contained in:
Stefan Feješ
2018-01-10 15:37:38 +01:00
parent 21b1755861
commit 2cc7ceb1ee
2 changed files with 4 additions and 1 deletions

View File

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

View File

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