fix(tests): remove low-value source snapshots and define test standards

This commit is contained in:
t8y2 committed 2026-09-11 11:51:24 +08:00
1 parent ead906477f
commit 8186c697d5
80 files changed
+14 -2225

No files matched your search

@@ -1,14 +0,0 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
const queryChartSource = readFileSync(new URL("../QueryChart.vue", import.meta.url), "utf8");
describe("QueryChart Y-axis selection", () => {
it("binds the visible checkbox state to the selected Y columns", () => {
expect(queryChartSource).toContain(':model-value="yColumnIndexes.includes(col.index)"');
expect(queryChartSource).toContain('@update:model-value="setYColumn(col.index, $event)"');
expect(queryChartSource).not.toContain(':checked="yColumnIndexes.includes(col.index)"');
expect(queryChartSource).not.toContain('@click="toggleYColumn(col.index)"');
expect(queryChartSource).not.toContain("CheckIcon");
});
});