diff options
author | Aditya Anand <aditya.anandmc@gmail.com> | 2017-08-03 19:54:36 +0530 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2017-08-07 19:13:41 -0400 |
commit | ad664eae7d7a222ae49f97cd5344f3b6be2b4d7b (patch) | |
tree | 36e283f8207897e077b14c49b88c278306f11a0e /test/parallel/test-zlib-not-string-or-buffer.js | |
parent | 0f325aaaeb3f97024738114e7c11def8a179f6f8 (diff) | |
download | node-new-ad664eae7d7a222ae49f97cd5344f3b6be2b4d7b.tar.gz |
test: mitigate RegEx exceeding 80 chars
Format commit wrapping lines containing RegEx and exceeding 80
chars.
PR-URL: https://github.com/nodejs/node/pull/14607
Fixes: https://github.com/nodejs/node/issues/14586
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test/parallel/test-zlib-not-string-or-buffer.js')
-rw-r--r-- | test/parallel/test-zlib-not-string-or-buffer.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-zlib-not-string-or-buffer.js b/test/parallel/test-zlib-not-string-or-buffer.js index 11b55138af..d03d69fea1 100644 --- a/test/parallel/test-zlib-not-string-or-buffer.js +++ b/test/parallel/test-zlib-not-string-or-buffer.js @@ -7,7 +7,8 @@ require('../common'); const assert = require('assert'); const zlib = require('zlib'); -const expected = /^TypeError: "buffer" argument must be a string, Buffer, TypedArray, or DataView$/; +const expected = + /^TypeError: "buffer" argument must be a string, Buffer, TypedArray, or DataView$/; assert.throws(() => { zlib.deflateSync(undefined); }, expected); assert.throws(() => { zlib.deflateSync(null); }, expected); |