Files
30-seconds-of-code/test/isObject/isObject.test.js
Angelos Chalaris 9217979f80 Updated testing with proper indentation
Uses two spaces instead of hard tabs.
2018-01-24 17:53:36 +02:00

20 lines
729 B
JavaScript

const test = require('tape');
const isObject = require('./isObject.js');
test('Testing isObject', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
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.equal(isObject(args..), 'Expected');
//t.false(isObject(args..), 'Expected');
//t.throws(isObject(args..), 'Expected');
t.end();
});