mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
3e4d52171e
* Fixes #4999; * Added regression test;
14 lines
409 B
JavaScript
14 lines
409 B
JavaScript
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');
|
|
});
|
|
});
|
|
});
|