Files
iptvnator/src/app/player/components/epg-list/epg-list.component.spec.ts
T
2021-01-13 22:33:54 +01:00

32 lines
1.1 KiB
TypeScript

import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { EpgListComponent } from './epg-list.component';
import { MatListModule } from '@angular/material/list';
import { MockModule } from 'ng-mocks';
import { ElectronService } from '../../../services/electron.service';
import { ElectronServiceStub } from '../../../home/home.component.spec';
describe('EpgListComponent', () => {
let component: EpgListComponent;
let fixture: ComponentFixture<EpgListComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [EpgListComponent],
imports: [MockModule(MatListModule)],
providers: [
{ provide: ElectronService, useClass: ElectronServiceStub },
],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(EpgListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});