2024-07-02 19:19:05 +02:00
|
|
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
2017-09-28 19:13:29 +02:00
|
|
|
|
2026-07-11 16:10:20 +02:00
|
|
|
import { RoomConf } from '../test-sessions/test-sessions.component';
|
2017-09-28 19:13:29 +02:00
|
|
|
import { OpenviduInstanceComponent } from './openvidu-instance.component';
|
|
|
|
|
|
|
|
|
|
describe('OpenviduInstanceComponent', () => {
|
|
|
|
|
let component: OpenviduInstanceComponent;
|
|
|
|
|
let fixture: ComponentFixture<OpenviduInstanceComponent>;
|
|
|
|
|
|
|
|
|
|
beforeEach(() => {
|
2024-07-02 19:19:05 +02:00
|
|
|
TestBed.configureTestingModule({
|
2026-07-11 16:10:20 +02:00
|
|
|
imports: [OpenviduInstanceComponent]
|
2024-07-02 19:19:05 +02:00
|
|
|
});
|
2017-09-28 19:13:29 +02:00
|
|
|
fixture = TestBed.createComponent(OpenviduInstanceComponent);
|
|
|
|
|
component = fixture.componentInstance;
|
2026-07-11 16:10:20 +02:00
|
|
|
const roomConf: RoomConf = {
|
|
|
|
|
uid: 0,
|
|
|
|
|
subscriber: true,
|
|
|
|
|
publisher: true,
|
|
|
|
|
startSession: false,
|
|
|
|
|
};
|
|
|
|
|
fixture.componentRef.setInput('roomConf', roomConf);
|
|
|
|
|
fixture.componentRef.setInput('index', 0);
|
2017-09-28 19:13:29 +02:00
|
|
|
fixture.detectChanges();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should create', () => {
|
|
|
|
|
expect(component).toBeTruthy();
|
|
|
|
|
});
|
|
|
|
|
});
|