Commit 2ccbf078 by xzyfer

Fix state leakage in binding tests

The state leakage means that running mocha in watch mode causes
random failures.

Closes #1748
parent 8d8f80c7
......@@ -48,7 +48,7 @@ describe('binding', function() {
prevValue = process.arch;
Object.defineProperty(process, 'arch', {
get: function () { return 'foo'; }
value: 'foo',
});
});
......@@ -78,7 +78,7 @@ describe('binding', function() {
prevValue = process.platform;
Object.defineProperty(process, 'platform', {
get: function () { return 'bar'; }
value: 'bar',
});
});
......@@ -108,7 +108,7 @@ describe('binding', function() {
prevValue = process.versions.modules;
Object.defineProperty(process.versions, 'modules', {
get: function () { return 'baz'; }
value: 'baz',
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment