Skip to content

Commit

Permalink
Update node tests for user_presence_rows.
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikmaji committed Oct 3, 2016
1 parent d2ca78b commit 8f47e15
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions frontend_tests/node_tests/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,23 +785,28 @@ function render(template_name, args) {
(function user_presence_rows() {
global.use_template('user_presence_row'); // partial
var args = {
users: [
starred_users: [
{
"my_fullname": true,
"type_desc": "Active",
"type": "active",
"num_unread": 0,
"email": "lear@zulip.com",
"name": "King Lear"
},
"name": "King Lear",
starred: true
}
],
unstarred_users: [
{
"type_desc": "Away",
"type": "away",
"num_unread": 5,
"email": "othello@zulip.com",
"name": "Othello"
"name": "Othello",
"starred": false
}
]
],
split: true
};

var html = '';
Expand Down

0 comments on commit 8f47e15

Please sign in to comment.