mirror of
https://github.com/chaijs/chai
synced 2024-11-15 08:17:14 +00:00
Merge pull request #490 from astorije/patch-2
Fix wrong call to the underlying method when checking if an object is frozen
This commit is contained in:
commit
0d5e87a825
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