2025-05-12 05:38:44 +09:00

21 lines
538 B
JavaScript

/*!
* 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);
});