feat: 添加query功能
This commit is contained in:
12
test/adapter.ts
Normal file
12
test/adapter.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { adapter } from '../src/adapter';
|
||||
const hostname = 'localhost:3002';
|
||||
|
||||
describe('Adapter', () => {
|
||||
// 编写一个测试用例
|
||||
// yarn test --testNamePattern='Adapter'
|
||||
test('Adapter:First', () => {
|
||||
adapter({ url: hostname + '/api/router' }).then((res) => {
|
||||
expect(res).toEqual({ id: 1 });
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user