From ff65c3e967908ead1f415ebbcce5bafe483ef622 Mon Sep 17 00:00:00 2001 From: John Hoffmann Date: Sat, 2 Nov 2024 07:27:13 +0100 Subject: [PATCH] fix: complete test --- .../marketplace/marketplace.component.spec.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/app/components/marketplace/marketplace.component.spec.ts b/src/app/components/marketplace/marketplace.component.spec.ts index eb5b9fe..6c8a3c7 100644 --- a/src/app/components/marketplace/marketplace.component.spec.ts +++ b/src/app/components/marketplace/marketplace.component.spec.ts @@ -1,4 +1,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { TestingModule } from '../../testing.module'; +import { ActivatedRoute } from '@angular/router'; +import { of } from 'rxjs'; import { MarketplaceComponent } from './marketplace.component'; @@ -8,7 +11,15 @@ describe('MarketplaceComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [MarketplaceComponent], + imports: [TestingModule, MarketplaceComponent], + providers: [ + { + provide: ActivatedRoute, + useValue: { + queryParams: of({ participant: 'test-participant' }), + }, + }, + ], }).compileComponents(); fixture = TestBed.createComponent(MarketplaceComponent);