Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/mocha-3.1.2/test/compiler/foo.js')
-rw-r--r--tests/lib/mocha-3.1.2/test/compiler/foo.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.2/test/compiler/foo.js b/tests/lib/mocha-3.1.2/test/compiler/foo.js
new file mode 100644
index 0000000000..753d08e740
--- /dev/null
+++ b/tests/lib/mocha-3.1.2/test/compiler/foo.js
@@ -0,0 +1,10 @@
+'use strict';
+
+var fs = require('fs');
+require.extensions['.foo'] = function (module, filename) {
+ var content;
+ content = fs.readFileSync(filename, 'utf8');
+ var test = 'describe("custom compiler",function(){ it("should work",function() { ' +
+ content + '.should.eql(1); }); });';
+ return module._compile(test, filename);
+};