Skip to content

Commit

Permalink
spell heroes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Jul 24, 2018
1 parent bebf705 commit 080dfed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/31sync/16room-summary.pl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
my $summary = $body->{rooms}{join}{$room_id}{summary};
assert_deeply_eq( $summary, {
'm.joined_member_count' => 3,
'm.heros' => [
'm.heroes' => [
$bob->user_id,
$charlie->user_id,
]
Expand Down Expand Up @@ -84,7 +84,7 @@
};


test "Room summary only has 5 heros",
test "Room summary only has 5 heroes",
requires => [ local_user_fixtures( 6 ),
qw( can_sync ) ],

Expand Down Expand Up @@ -114,7 +114,7 @@
my ( $body ) = @_;
log_if_fail ( "sync response:", $body->{rooms}{join}{$room_id} );
my $summary = $body->{rooms}{join}{$room_id}{summary};
my $expected_heros = [
my $expected_heroes = [
(sort(
$users[0]->user_id,
$users[1]->user_id,
Expand All @@ -123,10 +123,10 @@
$users[4]->user_id,
))[0..4]
];
log_if_fail( "expected_heros:", $expected_heros );
log_if_fail( "expected_heroes:", $expected_heroes );
assert_deeply_eq($summary, {
'm.joined_member_count' => 6,
'm.heros' => $expected_heros,
'm.heroes' => $expected_heroes,
});
Future->done(1);
});
Expand Down

0 comments on commit 080dfed

Please sign in to comment.