Skip to content

Commit

Permalink
Leo/fix randomly failing unit tests (#2065)
Browse files Browse the repository at this point in the history
* leo/fix-randomly-failing-unit-tests

* leo/fix-randomly-failing-unit-tests
  • Loading branch information
leomendoza123 authored Oct 3, 2023
1 parent 954e29e commit 207055d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -60,8 +60,7 @@ describe('GoogleTagManagerService', () => {
},
(error) => {
expect(error).toEqual({
name: 'GTM - Error',
message: 'Unable to add GTM',
name: 'GTM - Error'
})
}
)
Expand All @@ -79,7 +78,6 @@ describe('GoogleTagManagerService', () => {
(error) => {
expect(error).toEqual({
name: 'GTM - Error',
message: 'Unable to add GTM',
})
}
)
Expand Down

0 comments on commit 207055d

Please sign in to comment.