-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for setting account data (SYT-30) #82
Conversation
my ( $event ) = @_; | ||
|
||
return unless $event->{type} eq "my.test.type" | ||
and $event->{content}{cats_or_rats} eq "cats"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wants a terminating return 1;
at the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or a dropped "unless" :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahyes, that would be neater
LGTM modulo comments |
); | ||
|
||
check_one_account_data_event( | ||
$body->{rooms}[0]->{account_data}, "my.test.type", "rats" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This inner arrow isn't required; as per STYLE-GUIDE it should be omitteed.
$body->{rooms}[0]{account_data} ...
ac9a7c3
to
e8d5054
Compare
Add tests for setting account data (SYT-30)
Tests the API from matrix-org/matrix-spec-proposals#168