-
-
Notifications
You must be signed in to change notification settings - Fork 835
Missing toHaveLastReceivedEventDetail convenience matcher #2488
Copy link
Copy link
Closed
ionic-team/ionic-framework
#29666Labels
Feature: Want this? Upvote it!This PR or Issue may be a great consideration for a future idea.This PR or Issue may be a great consideration for a future idea.Resolution: RefineThis PR is marked for Jira refinement. We're not working on it - we're talking it through.This PR is marked for Jira refinement. We're not working on it - we're talking it through.
Metadata
Metadata
Assignees
Labels
Feature: Want this? Upvote it!This PR or Issue may be a great consideration for a future idea.This PR or Issue may be a great consideration for a future idea.Resolution: RefineThis PR is marked for Jira refinement. We're not working on it - we're talking it through.This PR is marked for Jira refinement. We're not working on it - we're talking it through.
Stencil version:
I'm submitting a:
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
There is no convenience method to assert on the last received event detail.
toHaveNthReceivedEventDetailcan be used in the meantime, but it would be nice to not have to manage the last event index.Expected behavior:
Similar to
toHaveFirstReceivedEventDetail, having atoHaveLastReceivedEventDetailmatcher would simplify assertions on the most recent event.