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 3131 },
3232 "homepage" : " https://github.com/WhatAKitty/react-native-fetch-mock#readme" ,
3333 "devDependencies" : {
34- "babel" : " ^6.23.0" ,
34+ "babel-cli" : " ^6.24.1" ,
35+ "babel-core" : " ^6.24.1" ,
3536 "babel-eslint" : " ^7.2.2" ,
37+ "babel-polyfill" : " ^6.23.0" ,
3638 "babel-preset-react-native" : " ^1.9.1" ,
3739 "eslint" : " ^3.19.0" ,
3840 "expect.js" : " ^0.3.1" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'babel-polyfill';
22import expect from 'expect.js' ;
33import FetchMock from '../src' ;
44
5- const fetch = new FetchMock ( '../__mocks__' ) . fetch ;
5+ const fetch = new FetchMock ( require ( '../__mocks__' ) ) . fetch ;
66describe ( 'test fetch mock' , ( ) => {
77 it ( 'fetch /api/users data' , async ( ) => {
88 const { data } = await fetch ( '/api/users' ) ;
You can’t perform that action at this time.
0 commit comments