mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	js: Convert static/js/narrow_state.js to ES6 module.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							a1e9be884d
						
					
				
				
					commit
					b830f53eb5
				
			@@ -39,9 +39,12 @@ rewiremock("../../static/js/drafts").with({
 | 
			
		||||
    update_draft: noop,
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
const narrow_state = set_global("narrow_state", {
 | 
			
		||||
const narrow_state = {
 | 
			
		||||
    __esModule: true,
 | 
			
		||||
    set_compose_defaults: noop,
 | 
			
		||||
});
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
rewiremock("../../static/js/narrow_state").with(narrow_state);
 | 
			
		||||
 | 
			
		||||
set_global("unread_ops", {
 | 
			
		||||
    notify_server_message_read: noop,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user