Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderVertegaal committed Sep 23, 2024
1 parent 301988f commit 664e851
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed } from "@angular/core/testing";

import { DeleteEntityButtonComponent } from './delete-entity-button.component';
import { DeleteEntityButtonComponent } from "./delete-entity-button.component";
import { SharedTestingModule } from "@shared/shared-testing.module";

describe('DeleteEntityButtonComponent', () => {
let component: DeleteEntityButtonComponent;
let fixture: ComponentFixture<DeleteEntityButtonComponent>;
describe("DeleteEntityButtonComponent", () => {
let component: DeleteEntityButtonComponent;
let fixture: ComponentFixture<DeleteEntityButtonComponent>;

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [DeleteEntityButtonComponent]
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [DeleteEntityButtonComponent],
imports: [SharedTestingModule]
});
fixture = TestBed.createComponent(DeleteEntityButtonComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
fixture = TestBed.createComponent(DeleteEntityButtonComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
it("should create", () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe("EntityDescriptionLeadComponent", () => {
});
fixture = TestBed.createComponent(EntityDescriptionLeadComponent);
component = fixture.componentInstance;
component.entity = { description: "test" };
fixture.detectChanges();
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { FormStatusComponent } from './form-status.component';
import { FormService } from '../form.service';

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

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [FormStatusComponent]
declarations: [FormStatusComponent],
providers: [FormService]
});
fixture = TestBed.createComponent(FormStatusComponent);
component = fixture.componentInstance;
Expand Down

0 comments on commit 664e851

Please sign in to comment.