Skip to content

Commit

Permalink
feat(drawing): Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingze Xiao committed Nov 24, 2020
1 parent b085727 commit 01929a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/image/__tests__/ImageAnnotator-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,14 @@ describe('ImageAnnotator', () => {
describe('scrollToAnnotation()', () => {
beforeEach(() => {
const payload = {
entries: regions as Annotation[],
entries: [...regions, ...drawings] as Annotation[],
limit: 1000,
next_marker: null,
previous_marker: null,
};

annotator.annotatedEl = getParent();
annotator.store.dispatch(fetchAnnotationsAction.fulfilled(payload, 'test', undefined));
annotator.store.dispatch(
fetchAnnotationsAction.fulfilled({ ...payload, entries: drawings as Annotation[] }, 'test', undefined),
);
});

test('should call scrollToLocation for region annotations', () => {
Expand Down

0 comments on commit 01929a2

Please sign in to comment.