Skip to content
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

Merged
merged 1 commit into from
Dec 1, 2015

Conversation

NegativeMjark
Copy link
Contributor

my ( $event ) = @_;

return unless $event->{type} eq "my.test.type"
and $event->{content}{cats_or_rats} eq "cats";
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or a dropped "unless" :)

Copy link
Contributor

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

@illicitonion
Copy link
Contributor

LGTM modulo comments

);

check_one_account_data_event(
$body->{rooms}[0]->{account_data}, "my.test.type", "rats"
Copy link
Contributor

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} ...

@leonerd leonerd changed the title Add tests for setting account data. Add tests for setting account data (SYT-30) Nov 20, 2015
NegativeMjark added a commit that referenced this pull request Dec 1, 2015
Add tests for setting account data (SYT-30)
@NegativeMjark NegativeMjark merged commit aabc336 into develop Dec 1, 2015
@leonerd leonerd deleted the markjh/client_config branch January 4, 2016 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants