node/test/common.js

16 lines
404 B
JavaScript
Raw Normal View History

var path = require("path");
exports.testDir = path.dirname(__filename);
exports.fixturesDir = path.join(exports.testDir, "fixtures");
exports.libDir = path.join(exports.testDir, "../lib");
require.paths.unshift(exports.libDir);
var assert = require('assert');
var sys = require("sys");
process.mixin(exports, sys);
exports.assert = require('assert');
2010-02-12 17:04:14 +08:00
exports.fs = require("fs");
exports.path = path;