From 7914cc3430ea82f56d88669c221e681433d040f3 Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Date: Mon, 2 Oct 2023 19:10:27 -0600 Subject: [PATCH 1/2] leo/fix-randomly-failing-unit-tests --- .../google-tag-manager/google-tag-manager.service.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/core/google-tag-manager/google-tag-manager.service.spec.ts b/src/app/core/google-tag-manager/google-tag-manager.service.spec.ts index 0c57dbc7fd..e7cafea288 100644 --- a/src/app/core/google-tag-manager/google-tag-manager.service.spec.ts +++ b/src/app/core/google-tag-manager/google-tag-manager.service.spec.ts @@ -47,7 +47,7 @@ describe('GoogleTagManagerService', () => { } )) - it('should be able to add script element and throw error because cannot connect with GTM', inject( + it('should be able to add script element and throw error because cannot connect with GTM', inject( [GoogleTagManagerService], (service: GoogleTagManagerService) => { service.addGtmToDom().subscribe( @@ -60,8 +60,7 @@ describe('GoogleTagManagerService', () => { }, (error) => { expect(error).toEqual({ - name: 'GTM - Error', - message: 'Unable to add GTM', + name: 'GTM - Error' }) } ) From 6f648a40e8a45a090576b6ffd18d4be17e74ed68 Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Date: Mon, 2 Oct 2023 19:11:01 -0600 Subject: [PATCH 2/2] leo/fix-randomly-failing-unit-tests --- .../core/google-tag-manager/google-tag-manager.service.spec.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/core/google-tag-manager/google-tag-manager.service.spec.ts b/src/app/core/google-tag-manager/google-tag-manager.service.spec.ts index e7cafea288..58100bcd06 100644 --- a/src/app/core/google-tag-manager/google-tag-manager.service.spec.ts +++ b/src/app/core/google-tag-manager/google-tag-manager.service.spec.ts @@ -78,7 +78,6 @@ describe('GoogleTagManagerService', () => { (error) => { expect(error).toEqual({ name: 'GTM - Error', - message: 'Unable to add GTM', }) } )