Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1798 from marvinhagemeister/process_leakage
Browse files Browse the repository at this point in the history
Fix binding tests leaking process values
  • Loading branch information
xzyfer authored Nov 13, 2016
2 parents 5c7fb7f + 17921a9 commit fdda254
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ describe('binding', function() {
});

afterEach(function() {
process.arch = prevValue;
Object.defineProperty(process, 'arch', {
value: prevValue,
});
});

it('should error', function() {
Expand Down Expand Up @@ -83,7 +85,9 @@ describe('binding', function() {
});

afterEach(function() {
process.platform = prevValue;
Object.defineProperty(process, 'platform', {
value: prevValue,
});
});

it('should error', function() {
Expand Down Expand Up @@ -113,7 +117,9 @@ describe('binding', function() {
});

afterEach(function() {
process.versions.modules = prevValue;
Object.defineProperty(process.versions, 'modules', {
value: prevValue,
});
});

it('should error', function() {
Expand Down

0 comments on commit fdda254

Please sign in to comment.