* feat: Allow navigating to a specified series and sop instance This was a feature in OHIF v2, so adding it to v3, albeit with new parameters. feat: Allow comma separated as well as repeated args params * docs * Test fixes * feat: Navigate to SOP selected - PR fixes * Updated docs * PR fixes
48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
JavaScript
import * as utils from './index.js';
|
|
|
|
describe('Top level exports', () => {
|
|
test('should export the modules ', () => {
|
|
const expectedExports = [
|
|
'guid',
|
|
'ObjectPath',
|
|
'absoluteUrl',
|
|
'seriesSortCriteria',
|
|
'sortBy',
|
|
'sortStudy',
|
|
'sortBySeriesDate',
|
|
'sortStudyInstances',
|
|
'sortStudySeries',
|
|
'sortingCriteria',
|
|
'splitComma',
|
|
'getSplitParam',
|
|
'isLowPriorityModality',
|
|
'writeScript',
|
|
'debounce',
|
|
'downloadCSVReport',
|
|
'imageIdToURI',
|
|
'roundNumber',
|
|
'b64toBlob',
|
|
'formatDate',
|
|
'formatPN',
|
|
'isEqualWithin',
|
|
//'loadAndCacheDerivedDisplaySets',
|
|
'isDisplaySetReconstructable',
|
|
'isImage',
|
|
'urlUtil',
|
|
'makeDeferred',
|
|
'makeCancelable',
|
|
'hotkeys',
|
|
'Queue',
|
|
'isDicomUid',
|
|
'resolveObjectPath',
|
|
'hierarchicalListUtils',
|
|
'progressTrackingUtils',
|
|
'subscribeToNextViewportGridChange',
|
|
].sort();
|
|
|
|
const exports = Object.keys(utils.default).sort();
|
|
|
|
expect(exports).toEqual(expectedExports);
|
|
});
|
|
});
|