2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Fixed query params composing; (#5018)

* Fixes #4999;

* Added regression test;
This commit is contained in:
Dmitriy Mozgovoy
2022-10-05 22:29:50 +03:00
committed by GitHub
parent d61dbede95
commit 3e4d52171e
2 changed files with 21 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
import assert from 'assert';
import axios from '../../../index.js';
describe('issues', function () {
describe('4999', function () {
it('should not fail with query parsing', async function () {
const {data} = await axios.get('https://postman-echo.com/get?foo1=bar1&foo2=bar2');
assert.strictEqual(data.args.foo1, 'bar1');
assert.strictEqual(data.args.foo2, 'bar2');
});
});
});