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:
authorJohannes <mail@johannesewald.de>2012-06-03 23:01:29 +0400
committerJohannes <mail@johannesewald.de>2012-06-03 23:01:29 +0400
commitd4eea33555f4e67be674c046ff1d1a9a460af94a (patch)
tree60672c8764687cd532f219dbb08e8c6d6f239548 /test/trick.test.js
parent07496ad0283cf5cc2184ecdf57b7d80cdc8348eb (diff)
changed injection behaviour
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 () {