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',
|
|
|
|
|
'addServers',
|
|
|
|
|
'sortBy',
|
|
|
|
|
'writeScript',
|
2019-10-25 23:46:32 -03:00
|
|
|
'b64toBlob',
|
2019-08-13 15:36:46 -04:00
|
|
|
'StackManager',
|
|
|
|
|
'studyMetadataManager',
|
|
|
|
|
// Updates WADO-RS metaDataManager
|
|
|
|
|
'updateMetaDataManager',
|
|
|
|
|
'DICOMTagDescriptions',
|
2019-09-27 08:47:08 -03:00
|
|
|
'DicomLoaderService',
|
2019-10-25 23:46:32 -03:00
|
|
|
'urlUtil',
|
2019-11-05 16:47:54 -03:00
|
|
|
'makeCancelable',
|
2020-02-12 17:35:04 -03:00
|
|
|
'hotkeys',
|
2019-08-13 15:36:46 -04:00
|
|
|
].sort();
|
|
|
|
|
|
|
|
|
|
const exports = Object.keys(utils.default).sort();
|
|
|
|
|
|
|
|
|
|
expect(exports).toEqual(expectedExports);
|
|
|
|
|
});
|
|
|
|
|
});
|