2009-11-01 02:02:30 +08:00
|
|
|
var path = require("path");
|
|
|
|
|
|
|
|
exports.testDir = path.dirname(__filename);
|
|
|
|
exports.fixturesDir = path.join(exports.testDir, "fixtures");
|
2010-02-26 04:01:23 +08:00
|
|
|
exports.libDir = path.join(exports.testDir, "../lib");
|
2009-09-21 00:19:33 +08:00
|
|
|
|
2009-10-26 05:51:10 +08:00
|
|
|
require.paths.unshift(exports.libDir);
|
2009-09-21 00:19:33 +08:00
|
|
|
|
2009-11-29 01:26:59 +08:00
|
|
|
var assert = require('assert');
|
2009-11-01 02:02:30 +08:00
|
|
|
var sys = require("sys");
|
|
|
|
|
2009-11-29 01:26:59 +08:00
|
|
|
process.mixin(exports, sys);
|
|
|
|
exports.assert = require('assert');
|
2010-02-12 17:04:14 +08:00
|
|
|
exports.fs = require("fs");
|
2009-11-01 02:02:30 +08:00
|
|
|
exports.path = path;
|