mirror of
https://github.com/axios/axios.git
synced 2026-04-16 15:56:02 +08:00
18 lines
392 B
JavaScript
18 lines
392 B
JavaScript
import {retryNetwork} from "../helpers/retry.js";
|
|
|
|
describe('FormData', function() {
|
|
it('should allow FormData posting', async () => {
|
|
await retryNetwork(() => {
|
|
return axios.postForm(TEST_SERVER_URL, {
|
|
a: 'foo',
|
|
b: 'bar'
|
|
}).then(({data}) => {
|
|
expect(data.form).toEqual({
|
|
a: 'foo',
|
|
b: 'bar'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
})
|