mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
PR-URL: https://github.com/nodejs/node/pull/19088 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@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'",
|
|
}
|
|
);
|