Skip to content

Commit fd8af34

Browse files
committed
Fix build error
1 parent e012e99 commit fd8af34

File tree

3 files changed

+877
-42
lines changed

3 files changed

+877
-42
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
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",

test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'babel-polyfill';
22
import expect from 'expect.js';
33
import FetchMock from '../src';
44

5-
const fetch = new FetchMock('../__mocks__').fetch;
5+
const fetch = new FetchMock(require('../__mocks__')).fetch;
66
describe('test fetch mock', () => {
77
it('fetch /api/users data', async () => {
88
const { data } = await fetch('/api/users');

0 commit comments

Comments
 (0)