[263] UX-Reste: Quellen-Auswahl voll lesbar, Hilfe → Kurzanleitung und Fehler melden, Nachweis-Export im leeren Projekt mit Hinweis
This commit is contained in:
19 files changed
+432
-11
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { BUG_REPORT_URL, bugReportUrl } from "./bugReport";
|
||||
|
||||
describe("bugReportUrl [263]", () => {
|
||||
it("zeigt auf die Issue-Seite und trägt nur Version und Build", () => {
|
||||
const url = bugReportUrl("Version: {version}\n\nWas passiert?", "Build", { version: "1.0.0-beta.1", build: "261116.1" });
|
||||
expect(url.startsWith(`${BUG_REPORT_URL}?body=`)).toBe(true);
|
||||
const body = decodeURIComponent(url.split("?body=")[1]!);
|
||||
expect(body).toBe("Version: 1.0.0-beta.1 (Build 261116.1)\n\nWas passiert?");
|
||||
expect(new URL(url).hostname).toBe("git.openbureau.ch");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user