fix
This commit is contained in:
1
book/node_modules/isobject/test/mocha.opts
generated
vendored
Normal file
1
book/node_modules/isobject/test/mocha.opts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
--reporter spec
|
||||
21
book/node_modules/isobject/test/test.js
generated
vendored
Normal file
21
book/node_modules/isobject/test/test.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/*!
|
||||
* isobject <https://github.com/jonschlinkert/isobject>
|
||||
*
|
||||
* Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
* Licensed under the MIT License
|
||||
*/
|
||||
|
||||
var expect = require('chai').expect;
|
||||
var isObject = require('../');
|
||||
|
||||
it('when null is passed it should return false.', function () {
|
||||
expect(isObject(null)).to.eql(false);
|
||||
});
|
||||
|
||||
it('when [] is passed it should return false.', function () {
|
||||
expect(isObject([])).to.eql(false);
|
||||
});
|
||||
|
||||
it('when {} is passed it should return true.', function () {
|
||||
expect(isObject({})).to.eql(true);
|
||||
});
|
||||
Reference in New Issue
Block a user