We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19840ab commit 8913d62Copy full SHA for 8913d62
mock.js
@@ -39,6 +39,20 @@ export const requestNotifications = jest.fn(async (options) => ({
39
}),
40
}));
41
42
+export const checkMultiple = jest.fn(async (permissions) =>
43
+ permissions.reduce((acc, permission) => ({
44
+ ...acc,
45
+ [permission]: RESULTS.GRANTED,
46
+ })),
47
+);
48
+
49
+export const requestMultiple = jest.fn(async (permissions) =>
50
51
52
53
54
55
56
export default {
57
PERMISSIONS,
58
RESULTS,
@@ -47,4 +61,6 @@ export default {
61
request,
62
checkNotifications,
63
requestNotifications,
64
+ checkMultiple,
65
+ requestMultiple,
66
};
0 commit comments