mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			420 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			420 B
		
	
	
	
		
			JavaScript
		
	
	
	
| import * as styles1 from "./style.less";
 | |
| import * as styles2 from "./style.modules.less";
 | |
| 
 | |
| it("should prefer relative", () => {
 | |
| 	expect(styles1).toEqual({});
 | |
| 	expect(styles2).toEqual(nsObj({
 | |
| 		"style-module": "_style_modules_less-style-module",
 | |
| 	}));
 | |
| 
 | |
| 	const style = getComputedStyle(document.body);
 | |
| 
 | |
| 	expect(style.getPropertyValue("background")).toBe(" red");
 | |
| 	expect(style.getPropertyValue("color")).toBe(" red");
 | |
| });
 |