2019-08-13 15:36:46 -04:00
|
|
|
import * as OHIF from './index.js';
|
|
|
|
|
|
|
|
|
|
describe('Top level exports', () => {
|
|
|
|
|
test('have not changed', () => {
|
|
|
|
|
const expectedExports = [
|
|
|
|
|
'MODULE_TYPES',
|
|
|
|
|
//
|
|
|
|
|
'CommandsManager',
|
|
|
|
|
'ExtensionManager',
|
|
|
|
|
'HotkeysManager',
|
2019-11-13 17:02:14 -03:00
|
|
|
'ServicesManager',
|
|
|
|
|
//
|
2019-12-11 00:28:23 -03:00
|
|
|
'UINotificationService',
|
|
|
|
|
'UIModalService',
|
|
|
|
|
'UIDialogService',
|
2020-02-10 16:15:05 -03:00
|
|
|
'MeasurementService',
|
2021-03-03 20:06:58 -03:00
|
|
|
'LoggerService',
|
2019-08-13 15:36:46 -04:00
|
|
|
//
|
|
|
|
|
'utils',
|
2020-02-12 17:35:04 -03:00
|
|
|
'hotkeys',
|
2019-08-13 15:36:46 -04:00
|
|
|
'studies',
|
|
|
|
|
'redux',
|
|
|
|
|
'classes',
|
|
|
|
|
'metadata',
|
|
|
|
|
'header',
|
|
|
|
|
'cornerstone',
|
|
|
|
|
'default', //
|
2020-04-23 04:01:34 +02:00
|
|
|
'errorHandler',
|
2022-01-28 20:02:30 -05:00
|
|
|
'str2ab',
|
2019-08-13 15:36:46 -04:00
|
|
|
'string',
|
|
|
|
|
'ui',
|
|
|
|
|
'user',
|
|
|
|
|
'object',
|
|
|
|
|
'log',
|
|
|
|
|
'DICOMWeb',
|
2019-12-18 15:25:53 -03:00
|
|
|
'DICOMSR',
|
2019-08-13 15:36:46 -04:00
|
|
|
'OHIF', //
|
|
|
|
|
'measurements',
|
|
|
|
|
'hangingProtocols',
|
|
|
|
|
].sort();
|
|
|
|
|
|
|
|
|
|
const exports = Object.keys(OHIF).sort();
|
|
|
|
|
|
|
|
|
|
expect(exports).toEqual(expectedExports);
|
|
|
|
|
});
|
|
|
|
|
});
|