Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed query params composing; (#5018)
* Fixes #4999; * Added regression test;
- Loading branch information
1 parent
d61dbed
commit 3e4d521
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
}); | ||
}); | ||
}); |