From 2079cb995aaa274db8283ce2369936997e6335b1 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 3 Jan 2014 11:57:17 -0500 Subject: [PATCH] Improve unit test for subscription template. (imported from commit 607524b47d5fec7bd8630158b1060f0855d845aa) --- zerver/tests/frontend/node/templates.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zerver/tests/frontend/node/templates.js b/zerver/tests/frontend/node/templates.js index 6526f915de..6704bb09a5 100644 --- a/zerver/tests/frontend/node/templates.js +++ b/zerver/tests/frontend/node/templates.js @@ -428,6 +428,9 @@ function render(template_name, args) { span = $(html).find(".rename-stream .sub_settings_title"); assert.equal(span.text(), 'Administrator settings'); + + var div = $(html).find(".subscription-type"); + assert(div.text().indexOf('invite-only stream') > 0); }());