mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
fix(headers): fixed support for setting multiple header values from an iterated source; (#6885)
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
import {retryNetwork} from "../helpers/retry.js";
|
||||
|
||||
describe('FormData', function() {
|
||||
it('should allow FormData posting', function () {
|
||||
return axios.postForm('http://httpbin.org/post', {
|
||||
a: 'foo',
|
||||
b: 'bar'
|
||||
}).then(({data}) => {
|
||||
expect(data.form).toEqual({
|
||||
it('should allow FormData posting', async () => {
|
||||
await retryNetwork(() => {
|
||||
return axios.postForm('http://httpbin.org/post', {
|
||||
a: 'foo',
|
||||
b: 'bar'
|
||||
}).then(({data}) => {
|
||||
expect(data.form).toEqual({
|
||||
a: 'foo',
|
||||
b: 'bar'
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user