diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/mocha.opts | 1 | ||||
| -rw-r--r-- | test/test.js | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/mocha.opts b/test/mocha.opts new file mode 100644 index 0000000..e3ca00a --- /dev/null +++ b/test/mocha.opts @@ -0,0 +1 @@ +--ui exports 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; + }; +}; |
