mirror of
				https://github.com/ecomfe/vue-echarts.git
				synced 2025-11-01 01:18:17 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			597 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			597 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { describe, it, expect } from "vitest";
 | |
| 
 | |
| import entry, * as moduleExports from "../src/index";
 | |
| import globalEntry from "../src/global";
 | |
| 
 | |
| import ECharts from "../src/ECharts";
 | |
| 
 | |
| describe("entry points", () => {
 | |
|   it("re-export ECharts correctly from src/index.ts", () => {
 | |
|     expect(entry).toBe(ECharts);
 | |
|     expect(moduleExports.default).toBe(ECharts);
 | |
|   });
 | |
| 
 | |
|   it("global entry merges default and named exports", () => {
 | |
|     expect(globalEntry.default).toBe(ECharts);
 | |
|     expect(Object.keys(globalEntry)).toEqual(
 | |
|       expect.arrayContaining(Object.keys(moduleExports)),
 | |
|     );
 | |
|   });
 | |
| });
 | 
