mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 08:13:34 +00:00
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user