Skip to content

Commit

Permalink
fix test modules
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Aug 5, 2024
1 parent 535e822 commit 1149b4d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';

import { AgentDescriptionFormComponent } from './agent-description-form.component';
import { SharedTestingModule } from '@shared/shared-testing.module';
import { DataEntrySharedModule } from '../../shared/data-entry-shared.module';

describe('AgentDescriptionFormComponent', () => {
let component: AgentDescriptionFormComponent;
Expand All @@ -10,7 +11,7 @@ describe('AgentDescriptionFormComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [AgentDescriptionFormComponent],
imports: [SharedTestingModule],
imports: [SharedTestingModule, DataEntrySharedModule],
});
fixture = TestBed.createComponent(AgentDescriptionFormComponent);
component = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ describe('AgentFormComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [AgentFormComponent],
imports: [
SharedTestingModule,
declarations: [
AgentFormComponent,
AgentIdentificationFormComponent,
AgentDescriptionFormComponent,
],
imports: [
SharedTestingModule,
],
});
fixture = TestBed.createComponent(AgentFormComponent);
component = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { DesignatorsControlComponent } from './designators-control.component';
import { SharedTestingModule } from '@shared/shared-testing.module';

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

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [DesignatorsControlComponent]
declarations: [DesignatorsControlComponent],
imports: [SharedTestingModule],
});
fixture = TestBed.createComponent(DesignatorsControlComponent);
component = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ActionButtonGroupComponent } from './action-button-group.component';
import { SharedTestingModule } from '@shared/shared-testing.module';

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

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

it('should create', () => {
expect(component).toBeTruthy();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

0 comments on commit 1149b4d

Please sign in to comment.