Skip to content

Commit

Permalink
Testing with static and dynamic requires (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Oct 14, 2017
1 parent ea73cc7 commit 7873806
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/require/mixed_commonjs.js
Original file line number Diff line number Diff line change
@@ -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
};

0 comments on commit 7873806

Please sign in to comment.