* fix: #1075 Returning to the Study List before all series have finished loading throws multiple errors in console * fix: 🐛 Addressing review feedback from issue #1075 Adding support for cancelable pattern Closes: #1075 * fix: 🐛 update unit test for exports Closes: #1075
28 lines
632 B
JavaScript
28 lines
632 B
JavaScript
import * as utils from './index.js';
|
|
|
|
describe('Top level exports', () => {
|
|
test('should export the modules ', () => {
|
|
const expectedExports = [
|
|
'guid',
|
|
'ObjectPath',
|
|
'absoluteUrl',
|
|
'addServers',
|
|
'sortBy',
|
|
'writeScript',
|
|
'b64toBlob',
|
|
'StackManager',
|
|
'studyMetadataManager',
|
|
// Updates WADO-RS metaDataManager
|
|
'updateMetaDataManager',
|
|
'DICOMTagDescriptions',
|
|
'DicomLoaderService',
|
|
'urlUtil',
|
|
'makeCancelable',
|
|
].sort();
|
|
|
|
const exports = Object.keys(utils.default).sort();
|
|
|
|
expect(exports).toEqual(expectedExports);
|
|
});
|
|
});
|