summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-fchmod.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-fchmod.js')
-rw-r--r--test/parallel/test-fs-fchmod.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-fs-fchmod.js b/test/parallel/test-fs-fchmod.js
index ebbc2792e1..a6d5c0c95d 100644
--- a/test/parallel/test-fs-fchmod.js
+++ b/test/parallel/test-fs-fchmod.js
@@ -1,5 +1,5 @@
'use strict';
-require('../common');
+const common = require('../common');
const assert = require('assert');
const util = require('util');
const fs = require('fs');
@@ -12,8 +12,8 @@ const fs = require('fs');
const errObj = {
code: 'ERR_INVALID_ARG_TYPE',
name: 'TypeError',
- message: 'The "fd" argument must be of type number. Received type ' +
- typeof input
+ message: 'The "fd" argument must be of type number.' +
+ common.invalidArgTypeHelper(input)
};
assert.throws(() => fs.fchmod(input), errObj);
assert.throws(() => fs.fchmodSync(input), errObj);