test: drop source-text assertion tests and merge locale checks

This commit is contained in:
t8y2 committed 2026-09-23 22:10:06 +08:00
1 parent 349d77d180
commit 8897e12714
257 files changed
+166 -12815

No files matched your search

@@ -1,15 +0,0 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
const dashboardSource = readFileSync(new URL("../EtcdDashboard.vue", import.meta.url), "utf8");
describe("EtcdDashboard refresh concurrency", () => {
it("skips overlapping refreshes for the same connection", () => {
expect(dashboardSource).toContain("if (loading.value && loadingConnectionId === connectionId) return");
});
it("discards responses from an obsolete load generation", () => {
expect(dashboardSource).toContain("const generation = ++loadGeneration");
expect(dashboardSource).toContain("if (generation !== loadGeneration || props.connectionId !== connectionId) return");
});
});