Skip to content

Commit 9beed55

Browse files
committed
fix tests
1 parent 9b42bc3 commit 9beed55

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/chai/api.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Method } from 'axios';
12
import chai = require('chai');
23
import './';
34
import api from './api';
@@ -13,7 +14,7 @@ chai.use(api);
1314
describe('api', () => {
1415
describe('response', () => {
1516
const url = 'url';
16-
const method = 'POST';
17+
const method = 'POST' as Method;
1718
const params = { param1: 'param1' };
1819
const data = { data1: 'data1' };
1920
const headers = { header1: 'header1' };

src/jest/api.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Method } from 'axios';
12
import * as originalUtils from 'jest-matcher-utils';
23
import { EOL } from 'os';
34
import { toReturnResponse } from './api';
@@ -23,7 +24,7 @@ describe('api matchers', () => {
2324
},
2425
};
2526
const url = 'url';
26-
const method = 'POST';
27+
const method = 'POST' as Method;
2728
const params = { param1: 'param1' };
2829
const data = { data1: 'data1' };
2930
const headers = { header1: 'header1' };

0 commit comments

Comments
 (0)