Skip to content

Commit

Permalink
Import modules and declare components
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-glombik committed Nov 20, 2024
1 parent 659a8b5 commit 3d3f513
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ describe('AttachmentUnitFormComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [ReactiveFormsModule, FormsModule, MockDirective(NgbTooltip), FormDateTimePickerComponent],
imports: [ReactiveFormsModule, FormsModule, MockDirective(NgbTooltip), MockModule(OwlDateTimeModule), MockModule(OwlNativeDateTimeModule)],
declarations: [
AttachmentUnitFormComponent,
FormDateTimePickerComponent,
MockPipe(ArtemisTranslatePipe),
MockComponent(FaIconComponent),
MockComponent(CompetencySelectionComponent),
MockModule(OwlDateTimeModule),
MockModule(OwlNativeDateTimeModule),
],
schemas: [],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ describe('OnlineUnitFormComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [ArtemisTestModule, ReactiveFormsModule, FormsModule, FormDateTimePickerComponent, MockModule(NgbTooltipModule)],
imports: [ArtemisTestModule, ReactiveFormsModule, FormsModule, MockModule(NgbTooltipModule), MockModule(OwlDateTimeModule), MockModule(OwlNativeDateTimeModule)],
declarations: [
OnlineUnitFormComponent,
FormDateTimePickerComponent,
MockPipe(ArtemisTranslatePipe),
MockComponent(FaIconComponent),
MockComponent(CompetencySelectionComponent),
MockModule(OwlDateTimeModule),
MockModule(OwlNativeDateTimeModule),
],
providers: [MockProvider(OnlineUnitService)],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@ describe('TextUnitFormComponent', () => {
});

TestBed.configureTestingModule({
imports: [ArtemisTestModule, ReactiveFormsModule, FormsModule, FormDateTimePickerComponent, MockModule(NgbTooltipModule)],
imports: [ArtemisTestModule, ReactiveFormsModule, FormsModule, MockModule(NgbTooltipModule), MockModule(OwlDateTimeModule), MockModule(OwlNativeDateTimeModule)],
declarations: [
TextUnitFormComponent,
MarkdownEditorStubComponent,
FormDateTimePickerComponent,
MockPipe(ArtemisTranslatePipe),
MockComponent(CompetencySelectionComponent),
MockModule(OwlDateTimeModule),
MockModule(OwlNativeDateTimeModule),
],
providers: [MockProvider(TranslateService), { provide: Router, useClass: MockRouter }],
schemas: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ describe('VideoUnitFormComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [ArtemisTestModule, ReactiveFormsModule, FormsModule, FormDateTimePickerComponent, MockModule(NgbTooltipModule)],
imports: [ArtemisTestModule, ReactiveFormsModule, FormsModule, MockModule(NgbTooltipModule), MockModule(OwlDateTimeModule), MockModule(OwlNativeDateTimeModule)],
declarations: [
VideoUnitFormComponent,
FormDateTimePickerComponent,
MockPipe(ArtemisTranslatePipe),
MockComponent(FaIconComponent),
MockComponent(CompetencySelectionComponent),
MockModule(OwlDateTimeModule),
MockModule(OwlNativeDateTimeModule),
],
providers: [],
schemas: [],
Expand Down

0 comments on commit 3d3f513

Please sign in to comment.