node: Fix node test for user_events.

This commit is contained in:
Tim Abbott 2017-08-16 16:46:01 -07:00
parent 7cfb4e195f
commit 30181dcc08
1 changed files with 2 additions and 5 deletions

View File

@ -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");
}());