mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
fix test
This commit is contained in:
parent
5cb7c8ee11
commit
306d31b92e
@ -25,8 +25,8 @@ Discourse.UserStream = Discourse.Model.extend({
|
||||
}
|
||||
|
||||
if(!filter) {
|
||||
return [Discourse.UserAction.TYPES.posts,
|
||||
Discourse.UserAction.TYPES.topics];
|
||||
return [ Discourse.UserAction.TYPES.topics,
|
||||
Discourse.UserAction.TYPES.posts].join(",");
|
||||
}
|
||||
|
||||
return filter;
|
||||
|
@ -18,7 +18,8 @@ test('filterParam', function() {
|
||||
var user = Discourse.User.create({id: 1, username: 'eviltrout'});
|
||||
var stream = user.get('stream');
|
||||
|
||||
blank(stream.get('filterParam'), "it's blank by default");
|
||||
// defaults to posts/topics
|
||||
equal(stream.get('filterParam'), "4,5");
|
||||
|
||||
stream.set('filter', Discourse.UserAction.TYPES.likes_given);
|
||||
equal(stream.get('filterParam'), Discourse.UserAction.TYPES.likes_given);
|
||||
|
Loading…
Reference in New Issue
Block a user