summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-rename-type-check.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-rename-type-check.js')
-rw-r--r--test/parallel/test-fs-rename-type-check.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-fs-rename-type-check.js b/test/parallel/test-fs-rename-type-check.js
index b8f0549f0c..bc1277740f 100644
--- a/test/parallel/test-fs-rename-type-check.js
+++ b/test/parallel/test-fs-rename-type-check.js
@@ -10,7 +10,7 @@ const fs = require('fs');
() => fs.rename(input, 'does-not-exist', common.mustNotCall()),
{
code: 'ERR_INVALID_ARG_TYPE',
- name: 'TypeError [ERR_INVALID_ARG_TYPE]',
+ name: 'TypeError',
message: `The "oldPath" argument must be one ${type}`
}
);
@@ -18,7 +18,7 @@ const fs = require('fs');
() => fs.rename('does-not-exist', input, common.mustNotCall()),
{
code: 'ERR_INVALID_ARG_TYPE',
- name: 'TypeError [ERR_INVALID_ARG_TYPE]',
+ name: 'TypeError',
message: `The "newPath" argument must be one ${type}`
}
);
@@ -26,7 +26,7 @@ const fs = require('fs');
() => fs.renameSync(input, 'does-not-exist'),
{
code: 'ERR_INVALID_ARG_TYPE',
- name: 'TypeError [ERR_INVALID_ARG_TYPE]',
+ name: 'TypeError',
message: `The "oldPath" argument must be one ${type}`
}
);
@@ -34,7 +34,7 @@ const fs = require('fs');
() => fs.renameSync('does-not-exist', input),
{
code: 'ERR_INVALID_ARG_TYPE',
- name: 'TypeError [ERR_INVALID_ARG_TYPE]',
+ name: 'TypeError',
message: `The "newPath" argument must be one ${type}`
}
);