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',
|
2020-03-13 16:45:26 -03:00
|
|
|
'loadAndCacheDerivedDisplaySets',
|
2019-09-27 08:47:08 -03:00
|
|
|
'DicomLoaderService',
|
2019-10-25 23:46:32 -03:00
|
|
|
'urlUtil',
|
2020-04-15 13:57:57 -03:00
|
|
|
'makeDeferred',
|
2019-11-05 16:47:54 -03:00
|
|
|
'makeCancelable',
|
2020-02-12 17:35:04 -03:00
|
|
|
'hotkeys',
|
2020-04-15 13:57:57 -03:00
|
|
|
'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);
|
|
|
|
|
});
|
|
|
|
|
});
|