diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-03 19:34:31 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-03 19:34:31 +0100 |
| commit | b5fef15290ef976620315eacd4cb762d07e1e7c3 (patch) | |
| tree | 41b17437a111943ea2f8afa3fbd585bb2f93261f /test/test.js | |
| parent | 0b56dfce42c3944cce47e284608e6806f4c839c3 (diff) | |
Support tests using exports UI
Diffstat (limited to 'test/test.js')
| -rw-r--r-- | test/test.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test.js b/test/test.js new file mode 100644 index 0000000..e48e57d --- /dev/null +++ b/test/test.js @@ -0,0 +1,11 @@ +var path = require("path"); + + +var root = path.dirname(__dirname); + +module.exports = function(testModule) { + var tests = testModule.exports[path.relative(root, testModule.filename)] = {}; + return function(name, func) { + tests[name] = func; + }; +}; |
