mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-27 10:55:07 +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)),
|
|
);
|
|
});
|
|
});
|