mirror of https://github.com/zulip/zulip.git
node: Fix node test for user_events.
This commit is contained in:
parent
7cfb4e195f
commit
30181dcc08
|
@ -134,14 +134,11 @@ initialize();
|
|||
assert(person.timezone);
|
||||
|
||||
var error_msg;
|
||||
var error_details;
|
||||
global.blueslip.error = function (error_message_arg, error_details_arg) {
|
||||
global.blueslip.error = function (error_message_arg) {
|
||||
error_msg = error_message_arg;
|
||||
error_details = error_details_arg;
|
||||
};
|
||||
|
||||
assert(!user_events.update_person({user_id: 29, full_name: 'Sir Isaac Newton'}));
|
||||
assert.equal(error_msg, "Got update_person event for unexpected user");
|
||||
assert.equal(error_details.email, 29);
|
||||
assert.equal(error_msg, "Got update_person event for unexpected user 29");
|
||||
|
||||
}());
|
||||
|
|
Loading…
Reference in New Issue