aboutsummaryrefslogtreecommitdiff
path: root/test/test.js
blob: e48e57d129542d15516d00f3b4b3fa80db997749 (plain)
1
2
3
4
5
6
7
8
9
10
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;
    };
};