Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { HttpClient, HttpClientModule, HttpRequest } from '@angular/common/http';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { ScanService } from './scan.service';
import { environment } from '../../environments/environment';
import { Selection3D } from '../model/selections/Selection3D';
import { MedTaggerWebSocket } from './websocket.service';
import { ScanMetadata } from '../model/ScanMetadata';
import { MarkerSlice } from '../model/MarkerSlice';
import { LabelTag } from '../model/labels/LabelTag';
import { of } from 'rxjs';
import { WrappedSocket } from 'ngx-socket-io/src/socket-io.service';
import { SelectedScan } from '../components/upload-scans-selector/upload-scans-selector.component';
import { SelectionMock } from '../mocks/selection.mock';
import { API_URL } from '../utils/ApiUrl';
const fakeMedTaggerSocket: WrappedSocket = new WrappedSocket({url: environment.WEBSOCKET_URL + '/slices'});
describe('Service: ScanService', () => {
const LABEL_TAG: LabelTag = new LabelTag('MOCK', 'Mock', []);
const MOCK_SELECTION: SelectionMock = new SelectionMock(1, 'MOCK', LABEL_TAG);
const EXAMPLE_DATA = {
SCAN_ID: '1',
TASK_KEY: 'NODULE',
LABELING_TIME: 1337,
COMMENT: 'Example comment',
ADDITIONAL_DATA: MOCK_SELECTION.getAdditionalData(),
LABEL_ID: '36026be2-b475-4f68-9b2f-295afcee2460',
OWNER_ID: '1',
STATUS: 'LabelVerificationStatus.NOT_VERIFIED',
DATASET: 'Example dataset',
NUM_SLICES: 1337