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 Ewald <johannes.ewald@peerigon.com>2017-11-11 04:23:18 +0300
committerJohannes Ewald <johannes.ewald@peerigon.com>2017-11-11 04:47:48 +0300
commitb6cc4071f67d47596901c01506eeeff138ab059e (patch)
tree18fd5e8f2627907cd85ee874a1d78519c2f7e779 /testLib/constModule.js
parent501e4c29bd16eaafae348b8faba6e5b061b98bc4 (diff)
Refactor code
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;