Commit 17921a95 by Marvin Hagemeister

Fix binding tests leaking process values

parent 5c7fb7f6
......@@ -53,7 +53,9 @@ describe('binding', function() {
});
afterEach(function() {
process.arch = prevValue;
Object.defineProperty(process, 'arch', {
value: prevValue,
});
});
it('should error', function() {
......@@ -83,7 +85,9 @@ describe('binding', function() {
});
afterEach(function() {
process.platform = prevValue;
Object.defineProperty(process, 'platform', {
value: prevValue,
});
});
it('should error', function() {
......@@ -113,7 +117,9 @@ describe('binding', function() {
});
afterEach(function() {
process.versions.modules = prevValue;
Object.defineProperty(process.versions, 'modules', {
value: prevValue,
});
});
it('should error', function() {
......
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