File tree 5 files changed +26
-3
lines changed 5 files changed +26
-3
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ parser : 'babel-eslint' ,
3
+ env : {
4
+ browser : true ,
5
+ es6 : true ,
6
+ jest : true ,
7
+ } ,
8
+ extends : 'eslint:recommended' ,
9
+ globals : {
10
+ Atomics : 'readonly' ,
11
+ SharedArrayBuffer : 'readonly' ,
12
+ } ,
13
+ parserOptions : {
14
+ ecmaFeatures : {
15
+ jsx : true ,
16
+ } ,
17
+ ecmaVersion : 2018 ,
18
+ sourceType : 'module' ,
19
+ } ,
20
+ plugins : [ 'react' ] ,
21
+ rules : { } ,
22
+ } ;
Original file line number Diff line number Diff line change 1
1
import client from './client' ;
2
+ // Require get request import for mocks to work
3
+ // eslint-disable-next-line no-unused-vars
2
4
import getRequest from './getRequest' ;
3
5
4
6
// SEE __mocks__/getRequest for which endpoint paths result in what types of
Original file line number Diff line number Diff line change 1
1
import createClient from './createClient' ;
2
+ // Require get request import for mocks to work
3
+ // eslint-disable-next-line no-unused-vars
2
4
import getRequest from './getRequest' ;
3
5
4
6
// SEE __mocks__/getRequest for which endpoint paths result in what types of
Original file line number Diff line number Diff line change @@ -8,12 +8,9 @@ const getRequest = path =>
8
8
if ( response === null ) {
9
9
return throwError ( 'API Timed out' , response ) ;
10
10
}
11
- console . log ( 'api response: ' , response ) ;
12
11
return response ;
13
12
} ) ,
14
13
catchError ( error => {
15
- console . log ( error ) ;
16
- console . error ( 'api error: ' , error . response ) ;
17
14
return of ( error ) ;
18
15
} ) ,
19
16
) ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments