mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-11 03:46:52 -05:00
Various small bug fixes
This commit is contained in:
@@ -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()", () => {
|
||||
|
||||
Reference in New Issue
Block a user