Skip to content

Commit

Permalink
fix episode preview component test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Aug 6, 2024
1 parent cfeda0d commit 9e2f3f4
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ComponentFixture, TestBed } from "@angular/core/testing";

import { EpisodePreviewComponent } from "./episode-preview.component";
import { SharedTestingModule } from "@shared/shared-testing.module";

describe("EpisodePreviewComponent", () => {
let component: EpisodePreviewComponent;
Expand All @@ -9,9 +10,23 @@ describe("EpisodePreviewComponent", () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [EpisodePreviewComponent],
imports: [SharedTestingModule],
});
fixture = TestBed.createComponent(EpisodePreviewComponent);
component = fixture.componentInstance;
component.episode = {
id: '1',
name: 'Test',
description: 'Test episode',
summary: '',
book: '',
chapter: '',
page: '',
agents: [],
gifts: [],
letters: [],
spaces: [],
}
fixture.detectChanges();
});

Expand Down

0 comments on commit 9e2f3f4

Please sign in to comment.