1.0.6
parent
7b82ba48dc
commit
4caaca10ad
|
@ -2,15 +2,13 @@
|
||||||
* @Author: early-autumn
|
* @Author: early-autumn
|
||||||
* @Date: 2020-04-19 14:43:15
|
* @Date: 2020-04-19 14:43:15
|
||||||
* @LastEditors: early-autumn
|
* @LastEditors: early-autumn
|
||||||
* @LastEditTime: 2020-04-19 16:19:24
|
* @LastEditTime: 2020-04-19 16:30:57
|
||||||
*/
|
*/
|
||||||
import flattenHeaders from '../../src/helper/flattenHeaders';
|
import flattenHeaders from '../../src/helper/flattenHeaders';
|
||||||
|
|
||||||
describe('测试 src/helper/flattenHeaders.ts', () => {
|
describe('测试 src/helper/flattenHeaders.ts', () => {
|
||||||
it('测试 容错', () => {
|
it('测试 容错', () => {
|
||||||
expect(flattenHeaders({})).toEqual({
|
expect(flattenHeaders({})).toEqual({});
|
||||||
Accept: 'application/json, test/plain, */*',
|
|
||||||
});
|
|
||||||
// 'Content-Type': 'application/json; charset=utf-8',
|
// 'Content-Type': 'application/json; charset=utf-8',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue