File tree Expand file tree Collapse file tree 3 files changed +877
-42
lines changed Expand file tree Collapse file tree 3 files changed +877
-42
lines changed Original file line number Diff line number Diff line change 31
31
},
32
32
"homepage" : " https://github.com/WhatAKitty/react-native-fetch-mock#readme" ,
33
33
"devDependencies" : {
34
- "babel" : " ^6.23.0" ,
34
+ "babel-cli" : " ^6.24.1" ,
35
+ "babel-core" : " ^6.24.1" ,
35
36
"babel-eslint" : " ^7.2.2" ,
37
+ "babel-polyfill" : " ^6.23.0" ,
36
38
"babel-preset-react-native" : " ^1.9.1" ,
37
39
"eslint" : " ^3.19.0" ,
38
40
"expect.js" : " ^0.3.1" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'babel-polyfill';
2
2
import expect from 'expect.js' ;
3
3
import FetchMock from '../src' ;
4
4
5
- const fetch = new FetchMock ( '../__mocks__' ) . fetch ;
5
+ const fetch = new FetchMock ( require ( '../__mocks__' ) ) . fetch ;
6
6
describe ( 'test fetch mock' , ( ) => {
7
7
it ( 'fetch /api/users data' , async ( ) => {
8
8
const { data } = await fetch ( '/api/users' ) ;
You can’t perform that action at this time.
0 commit comments