mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 19:38:23 +00:00

Rename test-fs-chdir-errormessage.js to test-process.chdir-errormessage.js. The test is for process.chdir(). There is no fs.chdir(). PR-URL: https://github.com/nodejs/node/pull/20532 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
15 lines
251 B
JavaScript
15 lines
251 B
JavaScript
'use strict';
|
|
|
|
const { expectsError } = require('../common');
|
|
|
|
expectsError(
|
|
() => {
|
|
process.chdir('does-not-exist');
|
|
},
|
|
{
|
|
type: Error,
|
|
code: 'ENOENT',
|
|
message: "ENOENT: no such file or directory, chdir 'does-not-exist'",
|
|
}
|
|
);
|