From 179158d4fd94cf0bf5a0b771eead1e1b2da6d99c Mon Sep 17 00:00:00 2001 From: Mingze Xiao Date: Tue, 15 Dec 2020 15:27:12 -0800 Subject: [PATCH] feat(annotations): Address comments --- src/lib/viewers/__tests__/BaseViewer-test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/viewers/__tests__/BaseViewer-test.js b/src/lib/viewers/__tests__/BaseViewer-test.js index 0b56ff219..f58e52c32 100644 --- a/src/lib/viewers/__tests__/BaseViewer-test.js +++ b/src/lib/viewers/__tests__/BaseViewer-test.js @@ -1180,6 +1180,7 @@ describe('lib/viewers/BaseViewer', () => { features: { enabledFeature: true, }, + initialColor: '#000', }; jest.spyOn(base, 'areAnnotationsEnabled').mockReturnValue(true); jest.spyOn(base, 'createAnnotatorOptions'); @@ -1192,9 +1193,7 @@ describe('lib/viewers/BaseViewer', () => { base.createAnnotator(); expect(base.options.boxAnnotations.getOptions).toBeCalled(); - expect(base.createAnnotatorOptions).toBeCalledWith( - expect.objectContaining({ ...createOptionsArg, initialColor: '#000' }), - ); + expect(base.createAnnotatorOptions).toBeCalledWith(expect.objectContaining(createOptionsArg)); }); test('should use default intl lib if annotator options not present ', () => {