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,12 +0,0 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
const source = readFileSync(new URL("../DriverStoreDialog.vue", import.meta.url), "utf8");
const templateStart = source.indexOf("<template>");
const template = source.slice(templateStart, source.indexOf("\n<style", templateStart)).trim();
describe("DriverStoreDialog visibility", () => {
it("keeps the page and its auxiliary dialog under one root so component v-show works", () => {
expect(template).toMatch(/^<template>\s*<div class="driver-store-view[^"]*">[\s\S]*<AgentOfflineExportDialog[^>]*\/>\s*<\/div>\s*<\/template>$/);
});
});