Skip to content

Commit

Permalink
do not attempt to define properties on primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
shvaikalesh committed Sep 6, 2017
1 parent d4fde80 commit 300b994
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/utilities.js
Expand Up @@ -829,8 +829,9 @@ describe('utilities', function () {
new chai.Assertion(this._obj).to.be.equal('x');
}
, function () {
this._obj = this._obj || {};
this._obj.__x = 'X!'
if (this._obj === Object(this._obj)) {
this._obj.__x = 'X!'
}
}
);

Expand Down Expand Up @@ -939,8 +940,9 @@ describe('utilities', function () {
new chai.Assertion(this._obj).to.be.equal('x');
}
, function () {
this._obj = this._obj || {};
this._obj.__x = 'X!'
if (this._obj === Object(this._obj)) {
this._obj.__x = 'X!'
}
}
);

Expand Down

0 comments on commit 300b994

Please sign in to comment.