Skip to content

Commit

Permalink
namespace the summary fields correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Jul 23, 2018
1 parent 4424280 commit d0ad3cb
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 @@ -31,8 +31,8 @@
log_if_fail ( "sync response:", $body->{rooms}{join}{$room_id} );
my $summary = $body->{rooms}{join}{$room_id}{summary};
assert_deeply_eq( $summary, {
joined_member_count => 3,
heros => [
'm.joined_member_count' => 3,
'm.heros' => [
$alice->user_id,
$bob->user_id,
$charlie->user_id,
Expand Down Expand Up @@ -78,7 +78,7 @@
log_if_fail ( "sync response:", $body->{rooms}{join}{$room_id} );
my $summary = $body->{rooms}{join}{$room_id}{summary};
assert_deeply_eq($summary, {
joined_member_count => 3,
'm.joined_member_count' => 3,
});
Future->done(1);
});
Expand Down Expand Up @@ -127,8 +127,8 @@
];
log_if_fail( "expected_heros:", $expected_heros );
assert_deeply_eq($summary, {
joined_member_count => 6,
heros => $expected_heros,
'm.joined_member_count' => 6,
'm.heros' => $expected_heros,
});
Future->done(1);
});
Expand Down

0 comments on commit d0ad3cb

Please sign in to comment.