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,13 +0,0 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
const quickOpenDialogSource = readFileSync(new URL("../QuickOpenDialog.vue", import.meta.url), "utf8");
describe("QuickOpenDialog theme styles", () => {
it("keeps the shared corner style and readable foreground text", () => {
expect(quickOpenDialogSource).toContain('class="max-w-2xl p-0 gap-0 rounded-lg overflow-hidden"');
expect(quickOpenDialogSource).toContain("background-color: var(--warning-bg) !important;");
expect(quickOpenDialogSource).not.toContain("border-radius: 0.75rem;");
expect(quickOpenDialogSource).not.toContain("color: var(--warning) !important;");
});
});