@@ -94,7 +94,7 @@ describe('GoogleOneTap', () => {
9494 replace : locationReplace ,
9595 } ) ;
9696
97- await initializeFedCM ( { isSignedIn : false } ) ;
97+ await initializeFedCM ( { isSignedIn : false , countryCode : 'IE' } ) ;
9898
9999 expect ( navigatorGet ) . toHaveBeenCalledWith ( {
100100 identity : {
@@ -150,7 +150,7 @@ describe('GoogleOneTap', () => {
150150 replace : locationReplace ,
151151 } ) ;
152152
153- await initializeFedCM ( { isSignedIn : false } ) ;
153+ await initializeFedCM ( { isSignedIn : false , countryCode : 'IE' } ) ;
154154
155155 expect ( submitComponentEventMock ) . toHaveBeenNthCalledWith (
156156 1 ,
@@ -205,9 +205,9 @@ describe('GoogleOneTap', () => {
205205 replace : locationReplace ,
206206 } ) ;
207207
208- await expect ( initializeFedCM ( { isSignedIn : false } ) ) . rejects . toThrow (
209- 'window.navigator.credentials.get failed' ,
210- ) ;
208+ await expect (
209+ initializeFedCM ( { isSignedIn : false , countryCode : 'IE' } ) ,
210+ ) . rejects . toThrow ( 'window.navigator.credentials.get failed' ) ;
211211
212212 expect ( submitComponentEventMock ) . toHaveBeenNthCalledWith (
213213 1 ,
@@ -249,7 +249,7 @@ describe('GoogleOneTap', () => {
249249 enableFedCM : false ,
250250 } ) ;
251251
252- await initializeFedCM ( { isSignedIn : false } ) ;
252+ await initializeFedCM ( { isSignedIn : false , countryCode : 'IE' } ) ;
253253
254254 expect ( submitComponentEventMock ) . toHaveBeenCalledTimes ( 1 ) ;
255255 expect ( submitComponentEventMock ) . toHaveBeenCalledWith (
@@ -276,13 +276,13 @@ describe('GoogleOneTap', () => {
276276 replace : locationReplace ,
277277 } ) ;
278278
279- await initializeFedCM ( { isSignedIn : true } ) ;
279+ await initializeFedCM ( { isSignedIn : true , countryCode : 'IE' } ) ;
280280
281281 expect ( navigatorGet ) . not . toHaveBeenCalled ( ) ;
282282 expect ( locationReplace ) . not . toHaveBeenCalled ( ) ;
283283 } ) ;
284284
285- it ( 'should not initializeFedCM when user is not in test ' , async ( ) => {
285+ it ( 'should not initializeFedCM when user is not in Ireland ' , async ( ) => {
286286 const navigatorGet = jest . fn ( ) ;
287287 const locationReplace = jest . fn ( ) ;
288288
@@ -291,7 +291,7 @@ describe('GoogleOneTap', () => {
291291 replace : locationReplace ,
292292 } ) ;
293293
294- await initializeFedCM ( { isSignedIn : true } ) ;
294+ await initializeFedCM ( { isSignedIn : false , countryCode : 'GB' } ) ;
295295
296296 expect ( submitComponentEventMock ) . toHaveBeenCalledTimes ( 1 ) ;
297297 expect ( submitComponentEventMock ) . toHaveBeenCalledWith (
0 commit comments