mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	node: Fix node test for user_events.
This commit is contained in:
		@@ -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");
 | 
			
		||||
 | 
			
		||||
}());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user