diff --git a/packages/analytics/src/helpers.test.ts b/packages/analytics/src/helpers.test.ts index 3df561be986..9145b625469 100644 --- a/packages/analytics/src/helpers.test.ts +++ b/packages/analytics/src/helpers.test.ts @@ -67,7 +67,9 @@ describe('Gtag wrapping functions', () => { insertScriptTag(customDataLayerName, fakeMeasurementId); const scriptTag = findGtagScriptOnPage(customDataLayerName); expect(scriptTag).to.not.be.null; - expect(scriptTag!.src).to.equal(`https://www.googletagmanager.com/gtag/js?l=${customDataLayerName}&id=${fakeMeasurementId}`); + expect(scriptTag!.src).to.equal( + `https://www.googletagmanager.com/gtag/js?l=${customDataLayerName}&id=${fakeMeasurementId}` + ); }); // The test above essentially already touches this functionality but it is still valuable diff --git a/packages/app-check/src/recaptcha.test.ts b/packages/app-check/src/recaptcha.test.ts index 7f028cca1a5..03c72dcab73 100644 --- a/packages/app-check/src/recaptcha.test.ts +++ b/packages/app-check/src/recaptcha.test.ts @@ -30,7 +30,9 @@ import { initializeV3, initializeEnterprise, getToken, - GreCAPTCHATopLevel + GreCAPTCHATopLevel, + RECAPTCHA_ENTERPRISE_URL, + RECAPTCHA_URL } from './recaptcha'; import * as utils from './util'; import { @@ -81,7 +83,9 @@ describe('recaptcha', () => { expect(findgreCAPTCHAScriptsOnPage().length).to.equal(0); await initializeV3(app, FAKE_SITE_KEY); - expect(findgreCAPTCHAScriptsOnPage().length).to.equal(1); + const greCATPCHAScripts = findgreCAPTCHAScriptsOnPage(); + expect(greCATPCHAScripts.length).to.equal(1); + expect(greCATPCHAScripts[0].src).to.equal(RECAPTCHA_URL); }); it('creates invisible widget', async () => { @@ -128,7 +132,9 @@ describe('recaptcha', () => { expect(findgreCAPTCHAScriptsOnPage().length).to.equal(0); await initializeEnterprise(app, FAKE_SITE_KEY); - expect(findgreCAPTCHAScriptsOnPage().length).to.equal(1); + const greCAPTCHAScripts = findgreCAPTCHAScriptsOnPage(); + expect(greCAPTCHAScripts.length).to.equal(1); + expect(greCAPTCHAScripts[0].src).to.equal(RECAPTCHA_ENTERPRISE_URL); }); it('creates invisible widget', async () => {