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 | import getSopClassHandlerModule from './getSopClassHandlerModule'; const dataSource = { retrieve: { directURL: () => 'video-url' } }; const extensionManager = { getActiveDataSource: () => [dataSource] }; const [videoHandler] = getSopClassHandlerModule({ extensionManager }); describe('dicom-video getDisplaySetsFromSeries', () => { it('supports a video with an empty AvailableTransferSyntaxUID and a valid TransferSyntaxUID', () => { // dcmjs 1.x naturalizes an empty list-VM element to [], which is truthy. const instance = { SOPInstanceUID: '1.2.3.1', SOPClassUID: '1.2.840.10008.5.1.4.1.1.77.1.1.1', AvailableTransferSyntaxUID: [], TransferSyntaxUID: '1.2.840.10008.1.2.4.102', imageId: 'video:1', }; expect(videoHandler.getDisplaySetsFromSeries([instance])).toHaveLength(1); }); }); |