Skip to content

Commit

Permalink
make tests work on NodeJS 18
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 19, 2022
1 parent 6844ba3 commit e4aa626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests/web.url-search-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ QUnit.test('URLSearchParams#@@toStringTag', assert => {

if (typeof Request == 'function') {
QUnit.test('URLSearchParams with Request', assert => {
new Request('#', { body: new URLSearchParams({ foo: 'baz' }), method: 'POST' }).text().then(text => {
new Request('http://zloirock.ru', { body: new URLSearchParams({ foo: 'baz' }), method: 'POST' }).text().then(text => {
assert.same(text, 'foo=baz');
}).then(assert.async());
});
Expand Down

0 comments on commit e4aa626

Please sign in to comment.