mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	node tests: Remove __esModule cruft.
We just set __esModule in our rewiremock helper.
This commit is contained in:
		
				
					committed by
					
						
						Steve Howell
					
				
			
			
				
	
			
			
			
						parent
						
							30c7108955
						
					
				
				
					commit
					167fda142c
				
			@@ -24,16 +24,15 @@ const localStorage = set_global("localStorage", {
 | 
			
		||||
        ls_container.clear();
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
const compose_state = {__esModule: true};
 | 
			
		||||
rewiremock("../../static/js/compose_state").with(compose_state);
 | 
			
		||||
const compose_state = rewiremock("../../static/js/compose_state").with({});
 | 
			
		||||
rewiremock("../../static/js/markdown").with({
 | 
			
		||||
    apply_markdown: noop,
 | 
			
		||||
});
 | 
			
		||||
rewiremock("../../static/js/stream_data").with({
 | 
			
		||||
    get_color() {
 | 
			
		||||
        return "#FFFFFF";
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
rewiremock("../../static/js/markdown").with({
 | 
			
		||||
    apply_markdown: noop,
 | 
			
		||||
});
 | 
			
		||||
set_global("page_params", {
 | 
			
		||||
    twenty_four_hour_time: false,
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user