From 2443c8aea32b40c71cf90a68c5fe1a8ed5db5889 Mon Sep 17 00:00:00 2001 From: andyjmaclean Date: Tue, 27 Aug 2024 15:08:19 +0200 Subject: [PATCH] Remove non-deterministic unit test --- src/app/country/country.component.spec.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/country/country.component.spec.ts b/src/app/country/country.component.spec.ts index d5f952f..0e4d557 100644 --- a/src/app/country/country.component.spec.ts +++ b/src/app/country/country.component.spec.ts @@ -23,7 +23,6 @@ import { CountryComponent } from '.'; describe('CountryComponent', () => { let component: CountryComponent; let fixture: ComponentFixture; - let intersectionObserverCreated = false; let router: Router; let routeChangeSource: BehaviorSubject; @@ -33,9 +32,7 @@ describe('CountryComponent', () => { } constructor( public callback: (entries: Array) => void - ) { - intersectionObserverCreated = true; - } + ) {} } const configureTestBed = (): void => { @@ -98,7 +95,6 @@ describe('CountryComponent', () => { it('should create', () => { expect(component).toBeTruthy(); - expect(intersectionObserverCreated).toBeTruthy(); }); it('should redirect (to home)', () => {