pull/1/head
954270063@qq.com 2020-04-19 16:31:12 +08:00
parent 7b82ba48dc
commit 4caaca10ad
1 changed files with 2 additions and 4 deletions

View File

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