Files
node/test/parallel/test-fs-chdir-errormessage.js
T
Sarat Addepalli b32bcf7e9c process: unify error message from chdir() errors
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>
2018-03-06 09:21:44 +01:00

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'",
}
);