Various small bug fixes
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-06-08 22:04:36 +03:00
parent 9c7d15fd88
commit 6a3ec6a654
24 changed files with 400 additions and 27 deletions

View File

@@ -15,6 +15,12 @@ describe("pathnameFromPotentialURL()", () => {
test("Returns string as is if not URL", () => {
expect(pathnameFromPotentialURL("sendouc")).toBe("sendouc");
});
test("Strips trailing slash from URL path", () => {
expect(pathnameFromPotentialURL("https://discord.gg/FW4dKrY/")).toBe(
"FW4dKrY",
);
});
});
describe("truncateBySentence()", () => {