Travis build: 1323 [cron]
This commit is contained in:
2
test/isPlainObject/isPlainObject.js
Normal file
2
test/isPlainObject/isPlainObject.js
Normal file
@ -0,0 +1,2 @@
|
||||
const isPlainObject = val => !!val && typeof val === 'object' && val.constructor === Object;
|
||||
module.exports = isPlainObject
|
||||
13
test/isPlainObject/isPlainObject.test.js
Normal file
13
test/isPlainObject/isPlainObject.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
const test = require('tape');
|
||||
const isPlainObject = require('./isPlainObject.js');
|
||||
|
||||
test('Testing isPlainObject', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof isPlainObject === 'function', 'isPlainObject is a Function');
|
||||
//t.deepEqual(isPlainObject(args..), 'Expected');
|
||||
//t.equal(isPlainObject(args..), 'Expected');
|
||||
//t.false(isPlainObject(args..), 'Expected');
|
||||
//t.throws(isPlainObject(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user