|
@ -1,5 +1,7 @@ |
|
|
var path = require("path"); |
|
|
var path = require("path"); |
|
|
|
|
|
|
|
|
|
|
|
exports = module.exports = global; |
|
|
|
|
|
|
|
|
exports.testDir = path.dirname(__filename); |
|
|
exports.testDir = path.dirname(__filename); |
|
|
exports.fixturesDir = path.join(exports.testDir, "fixtures"); |
|
|
exports.fixturesDir = path.join(exports.testDir, "fixtures"); |
|
|
exports.libDir = path.join(exports.testDir, "../lib"); |
|
|
exports.libDir = path.join(exports.testDir, "../lib"); |
|
@ -7,8 +9,6 @@ exports.PORT = 12346; |
|
|
|
|
|
|
|
|
require.paths.unshift(exports.libDir); |
|
|
require.paths.unshift(exports.libDir); |
|
|
|
|
|
|
|
|
var assert = require('assert'); |
|
|
|
|
|
var sys = require("sys"); |
|
|
var sys = require("sys"); |
|
|
|
|
|
for (var i in sys) exports[i] = sys[i]; |
|
|
process.mixin(exports, sys); |
|
|
|
|
|
exports.assert = require('assert'); |
|
|
exports.assert = require('assert'); |