From ea73cc7a1be4ad142a170f7204fcf28cbe3e67ba Mon Sep 17 00:00:00 2001 From: ArnaudBuchholz Date: Sat, 14 Oct 2017 13:58:06 -0400 Subject: [PATCH] Testing with only dynamic requries (#168) --- test/require/dynamic_commonjs.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/require/dynamic_commonjs.js diff --git a/test/require/dynamic_commonjs.js b/test/require/dynamic_commonjs.js new file mode 100644 index 00000000..df0da889 --- /dev/null +++ b/test/require/dynamic_commonjs.js @@ -0,0 +1,14 @@ +/* + * The scope is 'private'. + * Imports can be realized with require() + * Exports are made through the assignment to module.exports. + */ +"use strict"; + +var fileName = "data.json", + data = require(fileName); + +module.exports = { + type: "dynamic_commonjs", + data: data +};