Skip to content

Commit 8bac458

Browse files
committed
sync with react-native-fetch-mock
1 parent 58f3af7 commit 8bac458

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-fetch-mock",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "fetch mock for reactjs",
55
"main": "index.js",
66
"scripts": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class FetchMock {
9696
}
9797

9898
// resolve prue data object
99-
if (isNull(obj.data) && isNull(obj.status)) {
99+
if (isNull(obj.status)) {
100100
obj = {
101101
status: 200,
102102
data: obj,

0 commit comments

Comments
 (0)