summaryrefslogtreecommitdiff
path: root/test/parallel/test-zlib-deflate-constructors.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-zlib-deflate-constructors.js')
-rw-r--r--test/parallel/test-zlib-deflate-constructors.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-zlib-deflate-constructors.js b/test/parallel/test-zlib-deflate-constructors.js
index 49695fbaa5..d34bb869e3 100644
--- a/test/parallel/test-zlib-deflate-constructors.js
+++ b/test/parallel/test-zlib-deflate-constructors.js
@@ -107,6 +107,5 @@ assert.throws(
// Throws if opts.dictionary is not a Buffer
assert.throws(
() => { new zlib.Deflate({dictionary: 'not a buffer'}); },
- new RegExp('^TypeError: Invalid dictionary: it should be a Buffer, ' +
- 'TypedArray, or DataView$')
+ /^TypeError: Invalid dictionary: it should be a Buffer, TypedArray, or DataView$/
);