mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	realm_playground: Use Intl.ListFormat rather than .join(",").
Fixes: #26936 Co-authored by: CIC4DA <dhruv.jain9100@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							6c6d5fbb6a
						
					
				
				
					commit
					b9c037e0ee
				
			@@ -9,6 +9,7 @@ const {$t} = zrequire("i18n");
 | 
			
		||||
const pygments_data = zrequire("pygments_data");
 | 
			
		||||
const realm_playground = zrequire("realm_playground");
 | 
			
		||||
const typeahead_helper = zrequire("typeahead_helper");
 | 
			
		||||
const {initialize_user_settings} = zrequire("user_settings");
 | 
			
		||||
 | 
			
		||||
run_test("get_pygments_typeahead_list_for_composebox", () => {
 | 
			
		||||
    // When no Code Playground is configured, the list of candidates should
 | 
			
		||||
@@ -45,6 +46,8 @@ run_test("get_pygments_typeahead_list_for_composebox", () => {
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
run_test("get_pygments_typeahead_list_for_settings", () => {
 | 
			
		||||
    initialize_user_settings({user_settings: {}});
 | 
			
		||||
 | 
			
		||||
    const custom_pygment_language = "custom_lang";
 | 
			
		||||
    const playground_data = [
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user