axios-miniprogram/test/helper/flattenHeaders.test.ts

15 lines
392 B
TypeScript
Raw Normal View History

2020-04-19 16:30:38 +08:00
/*
* @Author: early-autumn
* @Date: 2020-04-19 14:43:15
* @LastEditors: early-autumn
2020-04-19 16:31:12 +08:00
* @LastEditTime: 2020-04-19 16:30:57
2020-04-19 16:30:38 +08:00
*/
import flattenHeaders from '../../src/helper/flattenHeaders';
describe('测试 src/helper/flattenHeaders.ts', () => {
it('测试 容错', () => {
2020-04-19 16:31:12 +08:00
expect(flattenHeaders({})).toEqual({});
2020-04-19 16:30:38 +08:00
// 'Content-Type': 'application/json; charset=utf-8',
});
});