Move source code for propagate_notification_change() in templates.js

This commit is contained in:
Steve Howell
2016-07-29 21:09:32 -07:00
committed by Tim Abbott
parent 9e8bff5628
commit b3553859f9

View File

@@ -493,6 +493,15 @@ function render(template_name, args) {
assert.equal(title.text().trim(), 'You have a notification');
}());
(function propagate_notification_change() {
var html = render('propagate_notification_change');
global.write_handlebars_output("propagate_notification_change", html);
var button_area = $(html).find(".propagate-notifications-controls");
assert.equal(button_area.find(".yes_propagate_notifications").text().trim(), 'Yes');
assert.equal(button_area.find(".no_propagate_notifications").text().trim(), 'No');
}());
(function sidebar_subject_list() {
var args = {
want_show_more_topics_links: true,
@@ -756,15 +765,6 @@ function render(template_name, args) {
assert.equal(a.text().trim(), 'Narrow to private messages with Hamlet');
}());
(function notification_docs() {
var html = render('propagate_notification_change');
global.write_handlebars_output("propagate_notification_change", html);
var button_area = $(html).find(".propagate-notifications-controls");
assert.equal(button_area.find(".yes_propagate_notifications").text().trim(), 'Yes');
assert.equal(button_area.find(".no_propagate_notifications").text().trim(), 'No');
}());
(function settings_tab() {
var page_param_checkbox_options = {
stream_desktop_notifications_enabled: true,