Skip to content

Commit

Permalink
Merge pull request #490 from astorije/patch-2
Browse files Browse the repository at this point in the history
Fix wrong call to the underlying method when checking if an object is frozen
  • Loading branch information
keithamus committed Jul 18, 2015
2 parents 9c7f6b6 + 909616e commit 0d5e87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chai/core/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
Expand Down

0 comments on commit 0d5e87a

Please sign in to comment.