Skip to content

Commit

Permalink
a final test addition
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Sep 15, 2023
1 parent 07f54ca commit 80eaf25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/canvas/__tests__/eventData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,15 @@ describe('Event targets', () => {
target: other,
targets: [other],
});

expect(
canvas.findTargets(canvas.getActiveObjects(), new Point(), {
searchStrategy: 'search-all',
})
).toEqual({
target: other,
targets: [other, subTarget, target],
});
}
);

Expand Down

0 comments on commit 80eaf25

Please sign in to comment.