Skip to content

Commit 6589917

Browse files
committed
clarified assert.isObject & assert.isNotObject documentation
1 parent a1e8373 commit 6589917

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/chai/interface/assert.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ module.exports = function (chai, util) {
538538
/**
539539
* ### .isObject(value, [message])
540540
*
541-
* Asserts that `value` is an object (as revealed by
542-
* `Object.prototype.toString`).
541+
* Asserts that `value` is an object of type 'Object' (as revealed by `Object.prototype.toString`).
542+
* _The assertion does not match subclassed objects._
543543
*
544544
* var selection = { name: 'Chai', serve: 'with spices' };
545545
* assert.isObject(selection, 'tea selection is an object');
@@ -558,7 +558,7 @@ module.exports = function (chai, util) {
558558
/**
559559
* ### .isNotObject(value, [message])
560560
*
561-
* Asserts that `value` is _not_ an object.
561+
* Asserts that `value` is _not_ an object of type 'Object' (as revealed by `Object.prototype.toString`).
562562
*
563563
* var selection = 'chai'
564564
* assert.isNotObject(selection, 'tea selection is not an object');

0 commit comments

Comments
 (0)