@@ -58,8 +58,12 @@ describe('platform_cordova/popup_redirect', () => {
58
58
new GoogleAuthProvider ( ) ,
59
59
AuthEventType . SIGN_IN_VIA_REDIRECT
60
60
)
61
- ) . to . throw ( FirebaseError , 'auth/invalid-cordova-configuration' )
62
- . that . has . deep . property ( 'customData' , { appName : 'test-app' , missingPlugin : 'cordova-universal-links-plugin-fix' } ) ;
61
+ )
62
+ . to . throw ( FirebaseError , 'auth/invalid-cordova-configuration' )
63
+ . that . has . deep . property ( 'customData' , {
64
+ appName : 'test-app' ,
65
+ missingPlugin : 'cordova-universal-links-plugin-fix'
66
+ } ) ;
63
67
} ) ;
64
68
65
69
it ( 'rejects if build info is missing' , ( ) => {
@@ -70,8 +74,12 @@ describe('platform_cordova/popup_redirect', () => {
70
74
new GoogleAuthProvider ( ) ,
71
75
AuthEventType . SIGN_IN_VIA_REDIRECT
72
76
)
73
- ) . to . throw ( FirebaseError , 'auth/invalid-cordova-configuration' )
74
- . that . has . deep . property ( 'customData' , { appName : 'test-app' , missingPlugin : 'cordova-plugin-buildInfo' } ) ;
77
+ )
78
+ . to . throw ( FirebaseError , 'auth/invalid-cordova-configuration' )
79
+ . that . has . deep . property ( 'customData' , {
80
+ appName : 'test-app' ,
81
+ missingPlugin : 'cordova-plugin-buildInfo'
82
+ } ) ;
75
83
} ) ;
76
84
77
85
it ( 'rejects if browsertab openUrl is missing' , ( ) => {
@@ -82,8 +90,12 @@ describe('platform_cordova/popup_redirect', () => {
82
90
new GoogleAuthProvider ( ) ,
83
91
AuthEventType . SIGN_IN_VIA_REDIRECT
84
92
)
85
- ) . to . throw ( FirebaseError , 'auth/invalid-cordova-configuration' )
86
- . that . has . deep . property ( 'customData' , { appName : 'test-app' , missingPlugin : 'cordova-plugin-browsertab' } ) ;
93
+ )
94
+ . to . throw ( FirebaseError , 'auth/invalid-cordova-configuration' )
95
+ . that . has . deep . property ( 'customData' , {
96
+ appName : 'test-app' ,
97
+ missingPlugin : 'cordova-plugin-browsertab'
98
+ } ) ;
87
99
} ) ;
88
100
89
101
it ( 'rejects if InAppBrowser is missing' , ( ) => {
@@ -94,15 +106,19 @@ describe('platform_cordova/popup_redirect', () => {
94
106
new GoogleAuthProvider ( ) ,
95
107
AuthEventType . SIGN_IN_VIA_REDIRECT
96
108
)
97
- ) . to . throw ( FirebaseError , 'auth/invalid-cordova-configuration' )
98
- . that . has . deep . property ( 'customData' , { appName : 'test-app' , missingPlugin : 'cordova-plugin-inappbrowser' } ) ;
109
+ )
110
+ . to . throw ( FirebaseError , 'auth/invalid-cordova-configuration' )
111
+ . that . has . deep . property ( 'customData' , {
112
+ appName : 'test-app' ,
113
+ missingPlugin : 'cordova-plugin-inappbrowser'
114
+ } ) ;
99
115
} ) ;
100
116
} ) ;
101
117
} ) ;
102
118
103
119
function attachExpectedPlugins ( ) : void {
104
120
// Eventually these will be replaced with full mocks
105
- const win = window as unknown as Record < string , unknown > ;
121
+ const win = ( window as unknown ) as Record < string , unknown > ;
106
122
win . cordova = {
107
123
plugins : {
108
124
browsertab : {
@@ -122,6 +138,6 @@ function attachExpectedPlugins(): void {
122
138
} ;
123
139
}
124
140
125
- function removeProp ( obj : unknown , prop : string ) :void {
141
+ function removeProp ( obj : unknown , prop : string ) : void {
126
142
delete ( obj as Record < string , unknown > ) [ prop ] ;
127
- }
143
+ }
0 commit comments