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/testModules/A/moduleA.js')
-rw-r--r--test/testModules/A/moduleA.js27
1 files changed, 19 insertions, 8 deletions
diff --git a/test/testModules/A/moduleA.js b/test/testModules/A/moduleA.js
index 1599f01..ffa3290 100644
--- a/test/testModules/A/moduleA.js
+++ b/test/testModules/A/moduleA.js
@@ -11,11 +11,22 @@ var path = require("path"),
var myPrivateVar = "Hello I'm very private";
-// expose all required modules to test for mocks
-exports.fs = fs;
-exports.b = b;
-exports.c = c;
-exports.toSrc = toSrc;
-exports.index = index;
-exports.process = process;
-exports.console = console; \ No newline at end of file
+function myPrivateFunction() {
+ return "Hello I'm very private";
+}
+
+function exportAll() {
+ // expose all required modules to test for mocks
+ exports.fs = fs;
+ exports.b = b;
+ exports.c = c;
+ exports.toSrc = toSrc;
+ exports.index = index;
+ exports.process = process;
+ exports.console = console;
+}
+
+exportAll();
+exports.exportAll = exportAll;
+
+