Skip to content

Commit

Permalink
Remove non-deterministic unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjmaclean committed Aug 27, 2024
1 parent c8267b1 commit 2443c8a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/country/country.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { CountryComponent } from '.';
describe('CountryComponent', () => {
let component: CountryComponent;
let fixture: ComponentFixture<CountryComponent>;
let intersectionObserverCreated = false;
let router: Router;
let routeChangeSource: BehaviorSubject<Params>;

Expand All @@ -33,9 +32,7 @@ describe('CountryComponent', () => {
}
constructor(
public callback: (entries: Array<IntersectionObserverEntry>) => void
) {
intersectionObserverCreated = true;
}
) {}
}

const configureTestBed = (): void => {
Expand Down Expand Up @@ -98,7 +95,6 @@ describe('CountryComponent', () => {

it('should create', () => {
expect(component).toBeTruthy();
expect(intersectionObserverCreated).toBeTruthy();
});

it('should redirect (to home)', () => {
Expand Down

0 comments on commit 2443c8a

Please sign in to comment.