All files / tools/ReFlex.TrackingServer/ClientApp/src/app/tracking/depth-image depth-image.component.test-data.ts

100% Statements 9/9
100% Branches 0/0
100% Functions 0/0
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 261x 1x 1x   1x             1x             1x   1x   1x   1x  
import { DepthCameraState, TrackingConfigState } from '@reflex/shared-types';
import { of, Subject } from 'rxjs';
import { WebSocketServiceMock } from 'src/shared/services/webSocket.service.mock';
 
export const trackingService = {
  getStatus: vi.fn().mockName('fakeTrackingService.getStatus'),
  setDepthImagePreviewState: vi
    .fn()
    .mockName('fakeTrackingService.setDepthImagePreviewState')
};
 
export const state: TrackingConfigState = {
  isCameraSelected: true,
  selectedCameraName: 'TestCamera',
  selectedConfigurationName: 'TestConfig',
  depthCameraStateName: DepthCameraState[DepthCameraState.Streaming]
};
 
trackingService.getStatus.mockReturnValue(of(state));
 
trackingService.setDepthImagePreviewState.mockReturnValue(of(true));
 
export const subject = new Subject<MessageEvent>();
 
export const wsMock = new WebSocketServiceMock(subject, 'mockedMessage');