feat: add assert event unit test - #657
Open
somotochukwu-dev wants to merge 1 commit into
Open
Conversation
|
@somotochukwu-dev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Fix the CI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add unit tests for
assert_event_topic_matcheshelperChanges
creator-keys/tests/events.rsassert_event_topic_matchespanic message to include expected and actual topic values:"event topic mismatch: expected {:?}, got {:?}"so topic mismatches are immediately diagnosable.test_assert_event_topic_matches_rejects_unexpected_identifierto match the new panic message format.test_assert_event_topic_matches_panics_on_buy_vs_sell_mismatch— emits a buy event and calls helper with sell topic, asserts panic.test_assert_event_topic_matches_passes_on_matching_topic— emits a buy event and calls helper with buy topic, asserts no panic.test_assert_event_topic_matches_panics_when_no_topics— passes an event with empty topics, asserts panic with "event topic should be present".test_assert_event_topic_mismatch_message_identifies_topics— usescatch_unwindto verify the panic message contains both expected and actual topic names.Closes #648