mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
Publish tests.
This commit is contained in:
parent
5a8ecd593d
commit
c396800dfa
40 changed files with 21478 additions and 1 deletions
18
test/util/chai.isPlainObject.js
Normal file
18
test/util/chai.isPlainObject.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
(function () {
|
||||
'use strict';
|
||||
|
||||
chai.Assertion.addChainableMethod('isPlainObject', function () {
|
||||
|
||||
this.assert(
|
||||
_.isPlainObject(this._obj),
|
||||
'expected ' + this._obj + ' to be a plain Object',
|
||||
'expected ' + this._obj + ' not to be a plain Object'
|
||||
);
|
||||
});
|
||||
|
||||
chai.assert.isPlainObject = function (val, msg) {
|
||||
|
||||
new chai.Assertion(val, msg).to.be.isPlainObject();
|
||||
};
|
||||
|
||||
}());
|
Loading…
Add table
Add a link
Reference in a new issue