Skip to content

Commit

Permalink
Fix state leakage in binding tests
Browse files Browse the repository at this point in the history
The state leakage means that running mocha in watch mode causes
random failures.

Closes sass#1748
  • Loading branch information
xzyfer committed Nov 12, 2016
1 parent 8d8f80c commit 2ccbf07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('binding', function() {
prevValue = process.arch;

Object.defineProperty(process, 'arch', {
get: function () { return 'foo'; }
value: 'foo',
});
});

Expand Down Expand Up @@ -78,7 +78,7 @@ describe('binding', function() {
prevValue = process.platform;

Object.defineProperty(process, 'platform', {
get: function () { return 'bar'; }
value: 'bar',
});
});

Expand Down Expand Up @@ -108,7 +108,7 @@ describe('binding', function() {
prevValue = process.versions.modules;

Object.defineProperty(process.versions, 'modules', {
get: function () { return 'baz'; }
value: 'baz',
});
});

Expand Down

0 comments on commit 2ccbf07

Please sign in to comment.