From 2cc7ceb1ee5fc04045639262e0c7b9c99b2c2af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 10 Jan 2018 15:37:38 +0100 Subject: [PATCH] add 2 tests, isArray & isBoolean --- test/isArray/isArray.test.js | 3 ++- test/isBoolean/isBoolean.test.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/isArray/isArray.test.js b/test/isArray/isArray.test.js index c225d3bf1..26c1dc5c0 100644 --- a/test/isArray/isArray.test.js +++ b/test/isArray/isArray.test.js @@ -5,7 +5,8 @@ test('Testing isArray', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape 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.false(isArray(args..), 'Expected'); //t.throws(isArray(args..), 'Expected'); diff --git a/test/isBoolean/isBoolean.test.js b/test/isBoolean/isBoolean.test.js index bc0f09b3d..c18f04d02 100644 --- a/test/isBoolean/isBoolean.test.js +++ b/test/isBoolean/isBoolean.test.js @@ -5,6 +5,8 @@ test('Testing isBoolean', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape 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.equal(isBoolean(args..), 'Expected'); //t.false(isBoolean(args..), 'Expected');