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/constModule.js')
-rw-r--r--testLib/constModule.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/testLib/constModule.js b/testLib/constModule.js
new file mode 100644
index 0000000..042b797
--- /dev/null
+++ b/testLib/constModule.js
@@ -0,0 +1,13 @@
+const someOtherModule = require("./someOtherModule");
+const language = "nl";
+
+module.exports.getLang = () => {
+ return language;
+}
+
+exports.getOtherModuleName = () => {
+ return someOtherModule.name;
+}
+
+exports.filename = __filename;
+exports.dirname = __dirname;