Commit d010f0e8 authored by Zhi Cun's avatar Zhi Cun Committed by GitHub

Chore: Relase 2.9.2 (#16181)

parent a6b2ce9e
## Changelog ## Changelog
## 2.9.1 ### 2.9.2
*2019-06-21*
#### Bug fixes
- Chore
- Fix TS definitions file (#15805 by @NateScarlet)
### 2.9.1
*2019-05-30* *2019-05-30*
......
## Changelog ## Changelog
## 2.9.1 ### 2.9.2
*2019-06-21*
#### Bug fixes
- Chore
- Fix TS definitions file (#15805 by @NateScarlet)
### 2.9.1
*2019-05-30* *2019-05-30*
......
## Changelog ## Changelog
## 2.9.1 ### 2.9.2
*2019-06-21*
#### Bug fixes
- Chore
- Fix TS definitions file (#15805 by @NateScarlet)
### 2.9.1
*2019-05-30* *2019-05-30*
......
## 更新日志 ## 更新日志
### 2.9.2
*2019-06-21*
#### Bug 修复
- Chore
- 修复 TS 定义文件 (#15805 by @NateScarlet)
### 2.9.1 ### 2.9.1
*2019-05-30* *2019-05-30*
......
import { createVue, destroyVM } from '../util.js'; import { createVue, destroyVM } from '../util.js';
import ajax from 'packages/upload/src/ajax'; import ajax from 'packages/upload/src/ajax';
const noop = () => {
}; const noop = () => {};
const option = { const option = {
onSuccess: noop, onSuccess: noop,
onProgress: noop, onProgress: noop,
data: { a: 'abc', b: 'bcd' }, data: { a: 'abc', b: 'bcd' },
filename: 'file.png', filename: 'file.png',
file: 'foo', file: new File([JSON.stringify('foo')], {type: 'image/png'}),
action: '/upload', action: '/upload',
headers: { region: 'shanghai' } headers: { region: 'shanghai' }
}; };
...@@ -35,7 +35,6 @@ describe('ajax', () => { ...@@ -35,7 +35,6 @@ describe('ajax', () => {
it('request width header', done => { it('request width header', done => {
ajax(option); ajax(option);
expect(requests[0].requestHeaders).to.eql({ expect(requests[0].requestHeaders).to.eql({
// 'X-Requested-With': 'XMLHttpRequest',
region: 'shanghai' region: 'shanghai'
}); });
done(); done();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment