Skip to content

Commit

Permalink
fix: complete test
Browse files Browse the repository at this point in the history
  • Loading branch information
jxhnx committed Nov 2, 2024
1 parent 78d2c8c commit ff65c3e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/app/components/marketplace/marketplace.component.spec.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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);
Expand Down

0 comments on commit ff65c3e

Please sign in to comment.