Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernanda-Kipper committed Jun 18, 2024
1 parent d3df062 commit 9a82625
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/components/coupon/coupon.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { CouponComponent } from './coupon.component';
import { CouponsComponent } from './coupon.component';

describe('CouponComponent', () => {
let component: CouponComponent;
let fixture: ComponentFixture<CouponComponent>;
let component: CouponsComponent;
let fixture: ComponentFixture<CouponsComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [CouponComponent],
imports: [CouponsComponent],
}).compileComponents();

fixture = TestBed.createComponent(CouponComponent);
fixture = TestBed.createComponent(CouponsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
Expand Down
5 changes: 5 additions & 0 deletions src/app/pages/event-details/event-details.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { EventDetailsComponent } from './event-details.component';
import { EventsService } from '../../services/events.service';
import { provideHttpClient } from '@angular/common/http';
import { provideRouter } from '@angular/router';
import { routes } from '../../app.routes';

describe('EventDetailsComponent', () => {
let component: EventDetailsComponent;
Expand All @@ -9,6 +13,7 @@ describe('EventDetailsComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [EventDetailsComponent],
providers: [provideHttpClient(), EventsService, provideRouter(routes)],
}).compileComponents();

fixture = TestBed.createComponent(EventDetailsComponent);
Expand Down

0 comments on commit 9a82625

Please sign in to comment.