0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/test/mjsunit/test-chdir.js
Felix Geisendörfer 530328f12b CommonJS testing for node.js
Refactored test suite to use the assert module for testing rather than
mjsunit.
2009-12-05 01:05:16 +01:00

10 lines
198 B
JavaScript

process.mixin(require("./common"));
var dirname = path.dirname(__filename);
assert.equal(true, process.cwd() !== dirname);
process.chdir(dirname);
assert.equal(true, process.cwd() === dirname);