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 <mail@johannesewald.de>2017-11-11 05:14:58 +0300
committerGitHub <noreply@github.com>2017-11-11 05:14:58 +0300
commit457955afab6e3f9baf649b6d9275d08f27b671ac (patch)
tree9b06934df193875f41dfc9400a352acd3183eb2a /testLib/constModule.js
parentfff5037950f78b4164c299560f761bd5e3dc9e06 (diff)
parentec2175b17bd1f2ecdb479c66fab8a01666d6da3a (diff)
Merge pull request #118 from jhnns/pr/origin/117
Enable const support
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..77396d9
--- /dev/null
+++ b/testLib/constModule.js
@@ -0,0 +1,13 @@
+const someOtherModule = require("./someOtherModule");
+const language = "nl";
+
+exports.getLang = () => {
+ return language;
+};
+
+exports.getOtherModuleName = () => {
+ return someOtherModule.name;
+};
+
+exports.filename = __filename;
+exports.dirname = __dirname;