mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Chore: Relase 2.9.2 (#16181)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { createVue, destroyVM } from '../util.js';
|
||||
import ajax from 'packages/upload/src/ajax';
|
||||
const noop = () => {
|
||||
};
|
||||
|
||||
const noop = () => {};
|
||||
const option = {
|
||||
onSuccess: noop,
|
||||
onProgress: noop,
|
||||
data: { a: 'abc', b: 'bcd' },
|
||||
filename: 'file.png',
|
||||
file: 'foo',
|
||||
file: new File([JSON.stringify('foo')], {type: 'image/png'}),
|
||||
action: '/upload',
|
||||
headers: { region: 'shanghai' }
|
||||
};
|
||||
@@ -35,7 +35,6 @@ describe('ajax', () => {
|
||||
it('request width header', done => {
|
||||
ajax(option);
|
||||
expect(requests[0].requestHeaders).to.eql({
|
||||
// 'X-Requested-With': 'XMLHttpRequest',
|
||||
region: 'shanghai'
|
||||
});
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user