Skip to content

Commit e94c260

Browse files
authored
Update mock.js (#681)
Fixed the mock response bug.
1 parent 245d4ec commit e94c260

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mock.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ export const checkMultiple = jest.fn(async (permissions) =>
5151
permissions.reduce((acc, permission) => ({
5252
...acc,
5353
[permission]: RESULTS.GRANTED,
54-
})),
54+
}), {}),
5555
);
5656

5757
export const requestMultiple = jest.fn(async (permissions) =>
5858
permissions.reduce((acc, permission) => ({
5959
...acc,
6060
[permission]: RESULTS.GRANTED,
61-
})),
61+
}), {}),
6262
);
6363

6464
export default {

0 commit comments

Comments
 (0)