From b0266ca42cb44ed9798372150d0c9d8f4bf19d4c Mon Sep 17 00:00:00 2001 From: 4gray Date: Mon, 1 Apr 2024 23:39:27 +0200 Subject: [PATCH] test(epg): update test file --- .../epg-item-description.component.spec.ts | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/app/player/components/epg-list/epg-item-description/epg-item-description.component.spec.ts b/src/app/player/components/epg-list/epg-item-description/epg-item-description.component.spec.ts index 154a60b69..ea941c870 100644 --- a/src/app/player/components/epg-list/epg-item-description/epg-item-description.component.spec.ts +++ b/src/app/player/components/epg-list/epg-item-description/epg-item-description.component.spec.ts @@ -1,8 +1,8 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog'; import { By } from '@angular/platform-browser'; -import { TranslatePipe } from '@ngx-translate/core'; -import { MockModule, MockPipe } from 'ng-mocks'; +import { TranslateModule } from '@ngx-translate/core'; +import { MockModule } from 'ng-mocks'; import { EpgProgram } from '../../../models/epg-program.model'; import { EpgItemDescriptionComponent } from './epg-item-description.component'; @@ -10,18 +10,13 @@ describe('EpgItemDescriptionComponent', () => { let component: EpgItemDescriptionComponent; let fixture: ComponentFixture; - beforeEach( - waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [ - EpgItemDescriptionComponent, - MockPipe(TranslatePipe), - ], - imports: [MockModule(MatDialogModule)], - providers: [{ provide: MAT_DIALOG_DATA, useValue: {} }], - }).compileComponents(); - }) - ); + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [EpgItemDescriptionComponent], + imports: [MockModule(MatDialogModule), MockModule(TranslateModule)], + providers: [{ provide: MAT_DIALOG_DATA, useValue: {} }], + }).compileComponents(); + })); beforeEach(() => { fixture = TestBed.createComponent(EpgItemDescriptionComponent);