Commit fdda2541 by Michael Mifsud Committed by GitHub

Merge pull request #1798 from marvinhagemeister/process_leakage

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