test(CornerstoneUtils): Adding unit tests for most of Cornerstone Extension utilities (#5454)
This commit is contained in:
1 parent
44beac799f
commit
3c421f124e
35 files changed
+8743
-66
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import * as cornerstoneTools from '@cornerstonejs/tools';
|
||||
import cloneDeep from 'lodash.clonedeep';
|
||||
|
||||
interface BidirectionalAxis {
|
||||
length: number;
|
||||
@@ -51,7 +52,7 @@ export async function updateSegmentationStats({
|
||||
return null;
|
||||
}
|
||||
|
||||
const updatedSegmentation = { ...segmentation };
|
||||
const updatedSegmentation = cloneDeep(segmentation);
|
||||
let hasUpdates = false;
|
||||
|
||||
// Loop through each segment's stats
|
||||
|
||||
Reference in new issue
Block a user