mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	copy_and_paste: Split copy and paste.
Note that the puppeteer tests only tested copying whereas the node tests only tested pasting, which is why the puppeteer tests for pasting and node tests for copying are absent after this split.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							803988d206
						
					
				
				
					commit
					8b9ba36465
				
			@@ -210,7 +210,7 @@ js_rules = RuleList(
 | 
			
		||||
            "exclude_pattern": r"(const |\S)style ?=",
 | 
			
		||||
            "description": "Avoid using the `style=` attribute; we prefer styling in CSS files",
 | 
			
		||||
            "exclude": {
 | 
			
		||||
                "web/tests/copy_and_paste.test.cjs",
 | 
			
		||||
                "web/tests/compose_paste.test.cjs",
 | 
			
		||||
            },
 | 
			
		||||
            "good_lines": ["#my-style {color: blue;}", "const style =", 'some_style = "test"'],
 | 
			
		||||
            "bad_lines": ['<p style="color: blue;">Foo</p>', 'style = "color: blue;"'],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user