You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
266 B
11 lines
266 B
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;
|
|
};
|
|
};
|
|
|