File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ import { Method } from 'axios' ;
12import chai = require( 'chai' ) ;
23import './' ;
34import api from './api' ;
@@ -13,7 +14,7 @@ chai.use(api);
1314describe ( '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' } ;
Original file line number Diff line number Diff line change 1+ import { Method } from 'axios' ;
12import * as originalUtils from 'jest-matcher-utils' ;
23import { EOL } from 'os' ;
34import { 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' } ;
You can’t perform that action at this time.
0 commit comments