@@ -20,7 +20,7 @@ describe('Notifications', () => {
2020
2121 describe ( 'getPermissionAsync' , ( ) => {
2222 test ( 'should return a Promise and call cordova.exec for getPermissionAsync' , ( ) => {
23- mockExec . mockImplementation ( ( resolve , reject ) => {
23+ mockExec . mockImplementation ( ( resolve ) => {
2424 resolve ( true ) ;
2525 } ) ;
2626
@@ -38,7 +38,7 @@ describe('Notifications', () => {
3838 } ) ;
3939
4040 test ( 'should resolve Promise when cordova.exec succeeds' , async ( ) => {
41- mockExec . mockImplementation ( ( resolve , reject ) => {
41+ mockExec . mockImplementation ( ( resolve ) => {
4242 resolve ( true ) ;
4343 } ) ;
4444
@@ -50,7 +50,7 @@ describe('Notifications', () => {
5050 test ( 'should reject Promise when cordova.exec fails' , async ( ) => {
5151 const mockError = new Error ( 'Permission check failed' ) ;
5252
53- mockExec . mockImplementation ( ( resolve , reject ) => {
53+ mockExec . mockImplementation ( ( _resolve , reject ) => {
5454 reject ( mockError ) ;
5555 } ) ;
5656
@@ -62,7 +62,7 @@ describe('Notifications', () => {
6262
6363 describe ( 'permissionNative' , ( ) => {
6464 test ( 'should return a Promise and call cordova.exec for permissionNative' , ( ) => {
65- mockExec . mockImplementation ( ( resolve , reject ) => {
65+ mockExec . mockImplementation ( ( resolve ) => {
6666 resolve ( OSNotificationPermission . Authorized ) ;
6767 } ) ;
6868
@@ -81,7 +81,7 @@ describe('Notifications', () => {
8181 } ) ;
8282
8383 test ( 'should resolve with OSNotificationPermission enum value' , async ( ) => {
84- mockExec . mockImplementation ( ( resolve , reject ) => {
84+ mockExec . mockImplementation ( ( resolve ) => {
8585 resolve ( OSNotificationPermission . Authorized ) ;
8686 } ) ;
8787
@@ -93,7 +93,7 @@ describe('Notifications', () => {
9393 test ( 'should reject Promise when cordova.exec fails' , async ( ) => {
9494 const mockError = new Error ( 'Permission check failed' ) ;
9595
96- mockExec . mockImplementation ( ( resolve , reject ) => {
96+ mockExec . mockImplementation ( ( _resolve , reject ) => {
9797 reject ( mockError ) ;
9898 } ) ;
9999 await expect ( notifications . permissionNative ( ) ) . rejects . toThrow (
@@ -106,7 +106,7 @@ describe('Notifications', () => {
106106 test . each ( [ [ true ] , [ false ] ] ) (
107107 'should call cordova.exec for requestPermission with fallbackToSettings %s' ,
108108 async ( fallback ) => {
109- mockExec . mockImplementation ( ( resolve , reject ) => {
109+ mockExec . mockImplementation ( ( resolve ) => {
110110 resolve ( true ) ;
111111 } ) ;
112112
@@ -123,7 +123,7 @@ describe('Notifications', () => {
123123 ) ;
124124
125125 test ( 'should use default fallbackToSettings of false when not provided' , ( ) => {
126- mockExec . mockImplementation ( ( resolve , reject ) => {
126+ mockExec . mockImplementation ( ( resolve ) => {
127127 resolve ( true ) ;
128128 } ) ;
129129
@@ -143,7 +143,7 @@ describe('Notifications', () => {
143143
144144 describe ( 'canRequestPermission' , ( ) => {
145145 test ( 'should return a Promise and call cordova.exec for canRequestPermission' , ( ) => {
146- mockExec . mockImplementation ( ( resolve , reject ) => {
146+ mockExec . mockImplementation ( ( resolve ) => {
147147 resolve ( true ) ;
148148 } ) ;
149149
@@ -162,7 +162,7 @@ describe('Notifications', () => {
162162 } ) ;
163163
164164 test ( 'should resolve with boolean value' , async ( ) => {
165- mockExec . mockImplementation ( ( resolve , reject ) => {
165+ mockExec . mockImplementation ( ( resolve ) => {
166166 resolve ( false ) ;
167167 } ) ;
168168
0 commit comments