custom profile data: Add template for custom user profile fields.

This commit is contained in:
YJDave
2018-02-27 00:38:23 +05:30
committed by Tim Abbott
parent 14fba1b9ed
commit 66f80441ce
4 changed files with 31 additions and 0 deletions

View File

@@ -579,6 +579,14 @@ function render(template_name, args) {
global.write_handlebars_output("compose_stream_alert", html);
}());
(function custom_user_profile_field() {
var args = {field_name: "GitHub user name", field_id: 2, field_value: "@GitHub", field_type: "text"};
var html = render('custom-user-profile-field', args);
assert.equal($(html).find('input').attr('id'), 2);
assert.equal($(html).find('input').val(), "@GitHub");
global.write_handlebars_output("custom-user-profile-field", html);
}());
(function deactivate_stream_modal() {
var args = {
stream_name: "Public stream",