整理测试代码并清理文档引用
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const readMainCss = () => readFileSync(resolve(__dirname, "./main.css"), "utf8");
|
||||
|
||||
describe("global table styles", () => {
|
||||
it("keeps Element Plus table sizing on the root node without overriding internal layout", () => {
|
||||
const css = readMainCss();
|
||||
|
||||
expect(css).toContain(".el-table {\n color: var(--ctms-text-regular);\n width: 100%;\n max-width: 100%;\n}");
|
||||
expect(css).not.toContain(".el-table__header,\n.el-table__body,\n.el-table__footer");
|
||||
expect(css).not.toContain(".el-table__inner-wrapper,\n.el-table__header-wrapper");
|
||||
expect(css).not.toContain(".el-table colgroup col");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user