From 0fbd4e417cf64aec12ccb8e9555da36147894c67 Mon Sep 17 00:00:00 2001 From: Xander Vertegaal Date: Tue, 10 Dec 2024 17:39:44 +0100 Subject: [PATCH] Fix tests --- .../minimalist-parser-browser.component.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/minimalist-parser/minimalist-parser-browser/minimalist-parser-browser.component.spec.ts b/frontend/src/app/minimalist-parser/minimalist-parser-browser/minimalist-parser-browser.component.spec.ts index 7776c6e..0de5c05 100644 --- a/frontend/src/app/minimalist-parser/minimalist-parser-browser/minimalist-parser-browser.component.spec.ts +++ b/frontend/src/app/minimalist-parser/minimalist-parser-browser/minimalist-parser-browser.component.spec.ts @@ -1,13 +1,18 @@ import { ComponentFixture, TestBed } from "@angular/core/testing"; import { MinimalistParserBrowserComponent } from "./minimalist-parser-browser.component"; +import { HttpClientTestingModule } from "@angular/common/http/testing"; +import { SharedModule } from "src/app/shared/shared.module"; describe("MinimalistParserBrowserComponent", () => { let component: MinimalistParserBrowserComponent; let fixture: ComponentFixture; beforeEach(async () => { - await TestBed.configureTestingModule({}).compileComponents(); + await TestBed.configureTestingModule({ + declarations: [MinimalistParserBrowserComponent], + imports: [HttpClientTestingModule, SharedModule], + }).compileComponents(); fixture = TestBed.createComponent(MinimalistParserBrowserComponent); component = fixture.componentInstance;