2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00
Files
axios/test/specs/formdata.spec.js
2025-09-13 17:50:32 +03:00

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'
});
});
});
});
})