diff options
Diffstat (limited to 'test/parallel/test-http-request-invalid-method-error.js')
-rw-r--r-- | test/parallel/test-http-request-invalid-method-error.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-http-request-invalid-method-error.js b/test/parallel/test-http-request-invalid-method-error.js index 00f593fa6f9..470f51a08fb 100644 --- a/test/parallel/test-http-request-invalid-method-error.js +++ b/test/parallel/test-http-request-invalid-method-error.js @@ -5,5 +5,6 @@ const http = require('http'); assert.throws( () => { http.request({method: '\0'}); }, - common.expectsError(undefined, TypeError, 'Method must be a valid HTTP token') + common.expectsError({ type: TypeError, + message: 'Method must be a valid HTTP token' }) ); |