aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-write-stream-throw-type-error.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-write-stream-throw-type-error.js')
-rw-r--r--test/parallel/test-fs-write-stream-throw-type-error.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-fs-write-stream-throw-type-error.js b/test/parallel/test-fs-write-stream-throw-type-error.js
index 3e1b0c0779..62627e1e32 100644
--- a/test/parallel/test-fs-write-stream-throw-type-error.js
+++ b/test/parallel/test-fs-write-stream-throw-type-error.js
@@ -4,11 +4,11 @@ const assert = require('assert');
const fs = require('fs');
const path = require('path');
-const numberError = new RegExp('^TypeError: "options" must be a string ' +
- 'or an object, got number instead\\.$');
+const numberError =
+ /^TypeError: "options" must be a string or an object, got number instead\.$/;
-const booleanError = new RegExp('^TypeError: "options" must be a string ' +
- 'or an object, got boolean instead\\.$');
+const booleanError =
+ /^TypeError: "options" must be a string or an object, got boolean instead\.$/;
const example = path.join(common.tmpDir, 'dummy');