fix(UnitTests): Fixing "Cannot find module @cornerstonejs/core" error while running unit tests (#5148)
This commit is contained in:
1 parent
277cef2168
commit
4a59126dd9
9 files changed
+181
-164
No files matched your search
@@ -200,7 +200,7 @@ describe('getDirectURL', () => {
|
||||
|
||||
const result = getDirectURL(config, params);
|
||||
|
||||
expect(mockedGetBulkdataValue).toHaveBeenCalledWith(config, params);
|
||||
expect(mockedGetBulkdataValue).not.toHaveBeenCalled();
|
||||
expect(mockedCreateRenderedRetrieve).toHaveBeenCalledWith(config, params);
|
||||
expect(result).toBe(renderedRetrieveURL);
|
||||
});
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import toNumber from '@ohif/core/src/utils/toNumber';
|
||||
import { utils } from '@ohif/core';
|
||||
|
||||
const { toNumber } = utils;
|
||||
|
||||
/**
|
||||
* Check if the frames in a series has different dimensions
|
||||
|
||||
Reference in new issue
Block a user