This commit is contained in:
2025-05-12 05:38:44 +09:00
parent dced21c3f8
commit 6d78bfa46e
8120 changed files with 1161564 additions and 0 deletions

1
book/node_modules/isobject/test/mocha.opts generated vendored Normal file
View File

@@ -0,0 +1 @@
--reporter spec

21
book/node_modules/isobject/test/test.js generated vendored Normal file
View 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);
});