Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(annotations): Address comments
Browse files Browse the repository at this point in the history
Mingze Xiao committed Dec 15, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b198112 commit 179158d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/viewers/__tests__/BaseViewer-test.js
Original file line number Diff line number Diff line change
@@ -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 ', () => {

0 comments on commit 179158d

Please sign in to comment.