mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
Fix wrong call to the underlying method when checking if an object is frozen
This commit is contained in:
parent
9c7f6b6ac9
commit
909616e0ad
1 changed files with 1 additions and 1 deletions
|
@ -1720,7 +1720,7 @@ module.exports = function (chai, _) {
|
|||
var obj = flag(this, 'object');
|
||||
|
||||
this.assert(
|
||||
Object.isSealed(obj)
|
||||
Object.isFrozen(obj)
|
||||
, 'expected #{this} to be frozen'
|
||||
, 'expected #{this} to not be frozen'
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue