* playing around * Change extension init and preRegistration signature * Clear test code * Update core index test * Fix test * Tricking the bug * Renaming file back to trick some weird bug
39 lines
737 B
JavaScript
39 lines
737 B
JavaScript
import * as OHIF from './index.js';
|
|
|
|
describe('Top level exports', () => {
|
|
test('have not changed', () => {
|
|
const expectedExports = [
|
|
'MODULE_TYPES',
|
|
//
|
|
'CommandsManager',
|
|
'ExtensionManager',
|
|
'HotkeysManager',
|
|
'ServicesManager',
|
|
//
|
|
'createUiNotificationService',
|
|
//
|
|
'utils',
|
|
'studies',
|
|
'redux',
|
|
'classes',
|
|
'metadata',
|
|
'header',
|
|
'cornerstone',
|
|
'default', //
|
|
'string',
|
|
'ui',
|
|
'user',
|
|
'object',
|
|
'log',
|
|
'DICOMWeb',
|
|
'OHIF', //
|
|
'measurements',
|
|
'hangingProtocols',
|
|
].sort();
|
|
|
|
const exports = Object.keys(OHIF).sort();
|
|
|
|
expect(exports).toEqual(expectedExports);
|
|
});
|
|
});
|