* refactor: 💡 ServicesManager factory functions vs instances Refactor servicesManager to take factory functions instead of instances Closes: #1265 * Remove testing code
43 lines
842 B
JavaScript
43 lines
842 B
JavaScript
import * as OHIF from './index.js';
|
|
|
|
describe('Top level exports', () => {
|
|
test('have not changed', () => {
|
|
const expectedExports = [
|
|
'MODULE_TYPES',
|
|
//
|
|
'CommandsManager',
|
|
'ExtensionManager',
|
|
'HotkeysManager',
|
|
'ServicesManager',
|
|
//
|
|
'UINotificationService',
|
|
'UIModalService',
|
|
'UIDialogService',
|
|
'UIContextMenuService',
|
|
'UILabellingFlowService',
|
|
//
|
|
'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);
|
|
});
|
|
});
|