Files
ohif-viewer/platform/core/src/utils/index.test.js
T

28 lines
649 B
JavaScript
Raw Normal View History

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',
'DicomLoaderService',
2019-10-25 23:46:32 -03:00
'urlUtil',
'makeCancelable',
'hotkeys',
2019-08-13 15:36:46 -04:00
].sort();
const exports = Object.keys(utils.default).sort();
expect(exports).toEqual(expectedExports);
});
});