mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			540 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			540 B
		
	
	
	
		
			JavaScript
		
	
	
	
| it("should work", done => {
 | |
| 	const links = window.document.getElementsByTagName("link");
 | |
| 	expect(links[0].sheet.css).toContain("color: red;");
 | |
| 
 | |
| 	NEXT(
 | |
| 		require("../../update")(done, true, () => {
 | |
| 			const links = window.document.getElementsByTagName("link");
 | |
| 			expect(links[0].sheet.css).toContain("color: blue;");
 | |
| 
 | |
| 			NEXT(
 | |
| 				require("../../update")(done, true, () => {
 | |
| 					const links = window.document.getElementsByTagName("link");
 | |
| 					expect(links[0].sheet.css).toContain("color: yellow;");
 | |
| 					done();
 | |
| 				})
 | |
| 			);
 | |
| 		})
 | |
| 	);
 | |
| });
 |