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 'testLib/sharedTestCases.js')
-rw-r--r--testLib/sharedTestCases.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/testLib/sharedTestCases.js b/testLib/sharedTestCases.js
index 06dcb11..b6caf6a 100644
--- a/testLib/sharedTestCases.js
+++ b/testLib/sharedTestCases.js
@@ -17,7 +17,7 @@ function checkForTypeError(err) {
expect(err.constructor).to.be(TypeError);
}
-describe(typeof testEnv === "undefined"? "(node)": "(" + testEnv + ")", function () {
+module.exports = function () {
it("should work like require()", function () {
rewire("./moduleA.js").getFilename();
@@ -390,4 +390,4 @@ describe(typeof testEnv === "undefined"? "(node)": "(" + testEnv + ")", function
expect(constModule.dirname).to.equal(require("./constModule").dirname);
});
-});
+};