Add JS tests for deleted post hiding (fix the build)

This commit is contained in:
riking 2014-07-17 11:13:14 -07:00
parent 19b757b058
commit de3633235b
1 changed files with 14 additions and 1 deletions

View File

@ -147,9 +147,22 @@ test("streamFilters", function() {
ok(!postStream.get('hasNoFilters'), "now there are filters present");
postStream.toggleParticipant(participant.username);
deepEqual(postStream.get('streamFilters'), {
username_filters: 'eviltrout',
show_deleted: true
}, "streamFilters contains the username we filtered and show_deleted");
postStream.toggleDeleted();
deepEqual(postStream.get('streamFilters'), {
username_filters: 'eviltrout'
}, "streamFilters contains the username we filtered");
}, "streamFilters contains the username we filtered without show_deleted");
postStream.cancelFilter();
postStream.toggleDeleted();
deepEqual(postStream.get('streamFilters'), {
show_deleted: true
}, "streamFilters show_deleted only");
});
test("loading", function() {