Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/trick.test.js')
-rw-r--r--test/trick.test.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/trick.test.js b/test/trick.test.js
index bb6633b..92055bc 100644
--- a/test/trick.test.js
+++ b/test/trick.test.js
@@ -57,8 +57,9 @@ describe("#trick", function () {
};
tricked = trick("./testModules/A/moduleA.js", null, injections);
- expect(tricked.process).to.be(process); // the process object itself should not be changed
- expect(tricked.process.argv).to.be.eql(injections.process.argv);
+ expect(tricked.process).not.to.be(process);
+ expect(process.argv).not.to.eql(injections.process.argv);
+ expect(tricked.process).to.eql(injections.process);
expect(tricked.console).to.be(123);
});
it("should inject custom scripts", function () {