From 21b17558614b077ea99f2e9a190852e962880bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 10 Jan 2018 15:34:49 +0100 Subject: [PATCH] add 2 tests, isFunction & isLowerCase --- test/isFunction/isFunction.test.js | 3 ++- test/isLowerCase/isLowerCase.test.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/isFunction/isFunction.test.js b/test/isFunction/isFunction.test.js index 749f79665..90ee51c8c 100644 --- a/test/isFunction/isFunction.test.js +++ b/test/isFunction/isFunction.test.js @@ -5,7 +5,8 @@ test('Testing isFunction', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof isFunction === 'function', 'isFunction is a Function'); - //t.deepEqual(isFunction(args..), 'Expected'); + t.equal(isFunction(x => x), true, "passed value is a function"); + t.equal(isFunction('x'), false, "passed value is not a function"); //t.equal(isFunction(args..), 'Expected'); //t.false(isFunction(args..), 'Expected'); //t.throws(isFunction(args..), 'Expected'); diff --git a/test/isLowerCase/isLowerCase.test.js b/test/isLowerCase/isLowerCase.test.js index c18cd36c1..815babfe4 100644 --- a/test/isLowerCase/isLowerCase.test.js +++ b/test/isLowerCase/isLowerCase.test.js @@ -5,6 +5,9 @@ test('Testing isLowerCase', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof isLowerCase === 'function', 'isLowerCase is a Function'); + t.equal(isLowerCase('abc'), true, "passed string is a lowercase"); + t.equal(isLowerCase('a3@$'), true, "passed string is a lowercase"); + t.equal(isLowerCase('A3@$'), false, "passed value is not a lowercase"); //t.deepEqual(isLowerCase(args..), 'Expected'); //t.equal(isLowerCase(args..), 'Expected'); //t.false(isLowerCase(args..), 'Expected');