add basic examples test to isObject

This commit is contained in:
King
2018-01-11 05:31:49 -05:00
parent 086005917d
commit 4bf3aa304d

View File

@ -5,6 +5,12 @@ test('Testing isObject', (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 isObject === 'function', 'isObject is a Function'); t.true(typeof isObject === 'function', 'isObject is a Function');
t.true(isObject([1, 2, 3, 4]), 'isObject([1, 2, 3, 4]) is a object');
t.true(isObject([]), 'isObject([]) is a object');
t.true(isObject({ a:1 }), 'isObject({ a:1 }) is a object');
t.false(isObject(true), 'isObject(true) is not a object');
//t.deepEqual(isObject(args..), 'Expected'); //t.deepEqual(isObject(args..), 'Expected');
//t.equal(isObject(args..), 'Expected'); //t.equal(isObject(args..), 'Expected');
//t.false(isObject(args..), 'Expected'); //t.false(isObject(args..), 'Expected');