Navigation Menu

Skip to content

Commit

Permalink
FIX: Remove computed property setting from hamburger test
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Jul 16, 2020
1 parent d99355d commit 01cd371
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions test/javascripts/widgets/hamburger-menu-test.js
Expand Up @@ -177,10 +177,22 @@ widgetTest("top categories", {
c.set("notification_level", NotificationLevels.MUTED);
} else if (unreadCategoryIds.length === 0) {
unreadCategoryIds.push(c.id);
c.set("unreadTopics", 5);
for (let i = 0; i < 5; i++) {
c.topicTrackingState.states["t123" + i] = {
category_id: c.id,
last_read_post_number: 1,
highest_post_number: 2,
notification_level: NotificationLevels.TRACKING
};
}
} else {
unreadCategoryIds.splice(0, 0, c.id);
c.set("newTopics", 10);
for (let i = 0; i < 10; i++) {
c.topicTrackingState.states["t321" + i] = {
category_id: c.id,
last_read_post_number: null
};
}
return false;
}
}
Expand Down

0 comments on commit 01cd371

Please sign in to comment.