diff --git a/zerver/tests/frontend/node/templates.js b/zerver/tests/frontend/node/templates.js index c7e04a7dd0..cb8170e1ba 100644 --- a/zerver/tests/frontend/node/templates.js +++ b/zerver/tests/frontend/node/templates.js @@ -74,32 +74,6 @@ function render(template_name, args) { }); }()); -(function stream_member_list_entry() { - var everyone_items = ["subscriber-name", "subscriber-email"]; - var admin_items = ["remove-subscriber-button"]; - - // First, as non-admin. - var html = render('stream_member_list_entry', - {name: "King Hamlet", email: "hamlet@zulip.com"}); - _.each(everyone_items, function (item) { - assert.equal($(html).find("." + item).length, 1); - }); - _.each(admin_items, function (item) { - assert.equal($(html).find("." + item).length, 0); - }); - - // Now, as admin. - html = render('stream_member_list_entry', - {name: "King Hamlet", email: "hamlet@zulip.com", - displaying_for_admin: true}); - _.each(everyone_items, function (item) { - assert.equal($(html).find("." + item).length, 1); - }); - _.each(admin_items, function (item) { - assert.equal($(html).find("." + item).length, 1); - }); -}()); - (function admin_streams_list() { var html = '