Skip to content

Commit 0d5e87a

Browse files
committed
Merge pull request #490 from astorije/patch-2
Fix wrong call to the underlying method when checking if an object is frozen
2 parents 9c7f6b6 + 909616e commit 0d5e87a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/chai/core/assertions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,7 @@ module.exports = function (chai, _) {
17201720
var obj = flag(this, 'object');
17211721

17221722
this.assert(
1723-
Object.isSealed(obj)
1723+
Object.isFrozen(obj)
17241724
, 'expected #{this} to be frozen'
17251725
, 'expected #{this} to not be frozen'
17261726
);

0 commit comments

Comments
 (0)