diff --git a/src/app/group-monitor/group-monitor.component.spec.ts b/src/app/group-monitor/group-monitor.component.spec.ts index eec30451a01ae754d6891dbbdba739304f6af306..acdfb6d79f39d3b1be846d69c3aaff67ce399441 100644 --- a/src/app/group-monitor/group-monitor.component.spec.ts +++ b/src/app/group-monitor/group-monitor.component.spec.ts @@ -15,14 +15,19 @@ import { CustomtextPipe } from 'iqb-components'; import { Pipe } from '@angular/core'; import { GroupMonitorComponent } from './group-monitor.component'; import { - CheckingOptions, + CheckingOptions, CommandResponse, GroupData, TestSession, TestSessionData, TestSessionSetStats } from './group-monitor.interfaces'; import { BackendService } from './backend.service'; import { TestViewComponent } from './test-view/test-view.component'; import { GroupMonitorService } from './group-monitor.service'; -import { unitTestSessionsStats, unitTestCheckedStats, unitTestExampleSessions } from './test-data.spec'; +import { + unitTestSessionsStats, + unitTestCheckedStats, + unitTestExampleSessions, + unitTestCommandResponse +} from './test-data.spec'; class MockMatDialog { open(): { afterClosed: () => Observable<{ action: boolean }> } { @@ -56,6 +61,7 @@ class MockGroupMonitorService { sessionsStats$ = new BehaviorSubject<TestSessionSetStats>(unitTestSessionsStats); checkedStats$ = new BehaviorSubject<TestSessionSetStats>(unitTestCheckedStats); sessions$ = new BehaviorSubject<TestSession[]>(unitTestExampleSessions); + commandResponses$ = new BehaviorSubject<CommandResponse>(unitTestCommandResponse); sessions = unitTestExampleSessions; // eslint-disable-next-line @typescript-eslint/no-unused-vars connect = (_: string) => {}; diff --git a/src/app/group-monitor/test-data.spec.ts b/src/app/group-monitor/test-data.spec.ts index 458ee6c13b4f8d9b461c1e28fed700081f9170a2..b10c04d535ff828fe2f0de8ffb8e6a1f88ba1011 100644 --- a/src/app/group-monitor/test-data.spec.ts +++ b/src/app/group-monitor/test-data.spec.ts @@ -1,5 +1,5 @@ import { - Booklet, TestSession, TestSessionData, TestSessionSetStats + Booklet, CommandResponse, TestSession, TestSessionData, TestSessionSetStats } from './group-monitor.interfaces'; import { TestSessionService } from './test-session.service'; @@ -195,3 +195,8 @@ export const unitTestCheckedStats: TestSessionSetStats = { paused: 0, locked: 0 }; + +export const unitTestCommandResponse: CommandResponse = { + commandType: 'any', + testIds: [0] +}; diff --git a/src/app/shared/alert/alert.component.spec.ts b/src/app/shared/alert/alert.component.spec.ts index 82b5fed8ee76b1000b56fac6718db62e22853f24..7861989bbec3759cc782f7a4ad1f903f68352243 100644 --- a/src/app/shared/alert/alert.component.spec.ts +++ b/src/app/shared/alert/alert.component.spec.ts @@ -3,7 +3,7 @@ import { MatIconModule } from '@angular/material/icon'; import { SimpleChange } from '@angular/core'; import { AlertComponent } from './alert.component'; -fdescribe('AlertComponent', () => { +describe('AlertComponent', () => { let component: AlertComponent; let fixture: ComponentFixture<AlertComponent>; let returnedTexts: string[] = [];