diff --git a/test/require/mixed_commonjs.js b/test/require/mixed_commonjs.js new file mode 100644 index 00000000..66ac1a37 --- /dev/null +++ b/test/require/mixed_commonjs.js @@ -0,0 +1,16 @@ +/* + * The scope is 'private'. + * Imports can be realized with require() + * Exports are made through the assignment to module.exports. + */ +"use strict"; + +var data = require("data.json"), + fileName = "data2.json", + data2 = require(fileName); + +module.exports = { + type: "mixed_commonjs", + data: data, + data2: data2 +};