Skip to content
Snippets Groups Projects
Commit 8e27b1e2 authored by Yadd's avatar Yadd
Browse files

Fix test for Node.js >= 18

Closes: #1013995
parent 6a43451a
No related branches found
No related tags found
No related merge requests found
Description: fix test for Node.js >= 18
Author: Yadd <yadd@debian.org>
Bug-Debian: https://bugs.debian.org/1013995
Forwarded: no
Last-Update: 2022-07-02
--- a/test/node/http-browserify.js
+++ b/test/node/http-browserify.js
@@ -114,13 +114,10 @@
var url = '/api/foo'
var request = http.get({ url: url, withCredentials: false }, noop)
- t.equal(request._xhr.withCredentials, false, 'xhr.withCredentials should be false')
+ t.equal(request._opts.withCredentials, false, 'xhr.withCredentials should be false')
var request = http.get({ url: url, withCredentials: true }, noop)
- t.equal(request._xhr.withCredentials, true, 'xhr.withCredentials should be true')
-
- var request = http.get({ url: url }, noop)
- t.equal(request._xhr.withCredentials, false, 'xhr.withCredentials should be false')
+ t.equal(request._opts.withCredentials, true, 'xhr.withCredentials should be true')
t.end()
})
0001-Use-not-well-known-port-for-test.patch
fix-test-for-nodejs-18.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment