fix(mqtt): format TLS regression test

Refs: #5722
This commit is contained in:
t8y2
2026-08-10 12:17:23 +08:00
parent 68f67cf45f
commit 8501b10ea7
@@ -2,8 +2,8 @@ import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
const dialogSource = readFileSync(new URL("../../../components/connection/ConnectionDialog.vue", import.meta.url), "utf8");
const mqttSectionStart = dialogSource.indexOf('<template v-else-if="form.db_type === \'mqtt\'">');
const mqttSectionEnd = dialogSource.indexOf('<template v-else-if="form.db_type === \'victoriametrics\'">', mqttSectionStart);
const mqttSectionStart = dialogSource.indexOf("<template v-else-if=\"form.db_type === 'mqtt'\">");
const mqttSectionEnd = dialogSource.indexOf("<template v-else-if=\"form.db_type === 'victoriametrics'\">", mqttSectionStart);
const mqttSection = dialogSource.slice(mqttSectionStart, mqttSectionEnd);
describe("MQTT connection dialog", () => {