@@ -19,7 +19,15 @@ export const request = jest.fn(async (permission) => RESULTS.GRANTED);
1919export const checkLocationAccuracy = jest . fn ( async ( ) => 'full' ) ;
2020export const requestLocationAccuracy = jest . fn ( async ( options ) => 'full' ) ;
2121
22- const notificationOptions = [ 'alert' , 'badge' , 'sound' , 'carPlay' , 'criticalAlert' , 'provisional' ] ;
22+ const notificationOptions = [
23+ 'alert' ,
24+ 'badge' ,
25+ 'sound' ,
26+ 'carPlay' ,
27+ 'criticalAlert' ,
28+ 'provisional' ,
29+ 'providesAppSettings' ,
30+ ] ;
2331
2432const notificationSettings = {
2533 alert : true ,
@@ -28,6 +36,7 @@ const notificationSettings = {
2836 carPlay : true ,
2937 criticalAlert : true ,
3038 provisional : true ,
39+ providesAppSettings : true ,
3140 lockScreen : true ,
3241 notificationCenter : true ,
3342} ;
@@ -48,17 +57,11 @@ export const requestNotifications = jest.fn(async (options) => ({
4857} ) ) ;
4958
5059export const checkMultiple = jest . fn ( async ( permissions ) =>
51- permissions . reduce ( ( acc , permission ) => ( {
52- ...acc ,
53- [ permission ] : RESULTS . GRANTED ,
54- } ) , { } ) ,
60+ permissions . reduce ( ( acc , permission ) => ( { ...acc , [ permission ] : RESULTS . GRANTED } ) , { } ) ,
5561) ;
5662
5763export const requestMultiple = jest . fn ( async ( permissions ) =>
58- permissions . reduce ( ( acc , permission ) => ( {
59- ...acc ,
60- [ permission ] : RESULTS . GRANTED ,
61- } ) , { } ) ,
64+ permissions . reduce ( ( acc , permission ) => ( { ...acc , [ permission ] : RESULTS . GRANTED } ) , { } ) ,
6265) ;
6366
6467export default {
0 commit comments