Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleostro committed Aug 19, 2024
1 parent 512cf9b commit c9b049a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute } from '@angular/router';

import { of } from 'rxjs';

import { CarriagesListComponent } from './carriages-list.component';

Expand All @@ -9,6 +12,7 @@ describe('CarriagesListComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [CarriagesListComponent],
providers: [{ provide: ActivatedRoute, useValue: { queryParams: of({}) } }],
}).compileComponents();

fixture = TestBed.createComponent(CarriagesListComponent);
Expand Down
5 changes: 4 additions & 1 deletion src/app/admin/pages/carriages/carriages.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { provideHttpClient } from '@angular/common/http';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute } from '@angular/router';

import { of } from 'rxjs';

import { CarriagesComponent } from './carriages.component';

Expand All @@ -10,7 +13,7 @@ describe('CarriagesComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [CarriagesComponent],
providers: [provideHttpClient()],
providers: [provideHttpClient(), { provide: ActivatedRoute, useValue: { queryParams: of({}) } }],
}).compileComponents();

fixture = TestBed.createComponent(CarriagesComponent);
Expand Down

0 comments on commit c9b049a

Please sign in to comment.