Skip to content

Commit

Permalink
fix: add missing imports to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastian Jakobi committed Nov 8, 2023
1 parent 5aeac59 commit 152eb96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { UserAvatarComponent } from '../user-avatar/user-avatar.component'
import { ActivatedRoute, RouterModule } from '@angular/router'
import { IfBreakpointDirective } from '../../directives/if-breakpoint.directive'
import { TooltipModule } from 'primeng/tooltip'
import { TranslateTestingModule } from 'ngx-translate-testing'

describe('HeaderComponent', () => {
let component: HeaderComponent
Expand All @@ -16,7 +17,7 @@ describe('HeaderComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [HeaderComponent, UserAvatarComponent, IfBreakpointDirective],
imports: [HttpClientTestingModule, RouterModule, TooltipModule],
imports: [HttpClientTestingModule, RouterModule, TooltipModule, TranslateTestingModule.withTranslations({}),],
providers: [
{ provide: AUTH_SERVICE, useClass: MockAuthService },
ConfigurationService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations'
import { IfBreakpointDirective } from '../../directives/if-breakpoint.directive'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import { TooltipModule } from 'primeng/tooltip'
import { TranslateTestingModule } from 'ngx-translate-testing'

describe('PortalViewportComponent', () => {
let component: PortalViewportComponent
Expand Down Expand Up @@ -49,6 +50,7 @@ describe('PortalViewportComponent', () => {
ReactiveFormsModule,
RouterModule,
TooltipModule,
TranslateTestingModule.withTranslations({})
],
providers: [
ConfigurationService,
Expand Down

0 comments on commit 152eb96

Please sign in to comment.