fix(tests): remove low-value source snapshots and define test standards
This commit is contained in:
80 files changed
+14
-2225
No files matched your search
-12
@@ -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>$/);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user