Files
ohif-viewer/platform/core/src/utils/index.test.js
T

36 lines
834 B
JavaScript
Raw Normal View History

2019-08-13 15:36:46 -04:00
import * as utils from './index.js';
describe('Top level exports', () => {
test('should export the modules ', () => {
const expectedExports = [
'guid',
'ObjectPath',
'absoluteUrl',
'sortBy',
'sortBySeriesDate',
'isLowPriorityModality',
2019-08-13 15:36:46 -04:00
'writeScript',
2019-10-25 23:46:32 -03:00
'b64toBlob',
2019-08-13 15:36:46 -04:00
'StackManager',
'formatDate',
'formatPN',
//'loadAndCacheDerivedDisplaySets',
'isDisplaySetReconstructable',
'isImage',
'DicomLoaderService',
2019-10-25 23:46:32 -03:00
'urlUtil',
'makeDeferred',
'makeCancelable',
'hotkeys',
'Queue',
'isDicomUid',
'resolveObjectPath',
'hierarchicalListUtils',
'progressTrackingUtils',
2019-08-13 15:36:46 -04:00
].sort();
const exports = Object.keys(utils.default).sort();
expect(exports).toEqual(expectedExports);
});
});