Skip to content

Commit 0cfde6b

Browse files
committed
Rmove async statement
1 parent c5e6f72 commit 0cfde6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/Basic/__mocks__/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
export default {
3-
'/api/users': async (options) => {
3+
'/api/users': (options) => {
44
const all = [
55
{
66
name: 'John',

example/WithMockJs/__mocks__/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Mock } from 'react-native-fetch-mock';
22

33
export default {
4-
'/api/users/mockjs': async (options) => {
4+
'/api/users/mockjs': (options) => {
55
const all = Mock.mock({
66
'list|1-10': [{
77
'id|+1': 1,

0 commit comments

Comments
 (0)