summaryrefslogtreecommitdiff
path: root/test/parallel/test-writeint.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-writeint.js')
-rw-r--r--test/parallel/test-writeint.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/parallel/test-writeint.js b/test/parallel/test-writeint.js
index cc3ec80d63..66dc13997e 100644
--- a/test/parallel/test-writeint.js
+++ b/test/parallel/test-writeint.js
@@ -23,9 +23,13 @@
/*
* Tests to verify we're writing signed integers correctly
*/
-require('../common');
+const common = require('../common');
const assert = require('assert');
-const errorOutOfBounds = /^TypeError: "value" argument is out of bounds$/;
+const errorOutOfBounds = common.expectsError({
+ code: 'ERR_INVALID_OPT_VALUE',
+ type: RangeError,
+ message: /^The value "[^"]*" is invalid for option "value"$/
+}, 12);
function test8(clazz) {
const buffer = new clazz(2);