Update frontend UI/UX

This commit is contained in:
2026-10-20 04:59:08 +01:00
parent 59f5acb7bc
commit e2093b0df6
17 changed files with 163 additions and 11 deletions
+9
View File
@@ -1,4 +1,5 @@
import { describe, expect, test } from "bun:test";
import botRef from "./bot-ref";
import computerRef from "./computer-ref";
import linkComputerRefs from "./link-computer-refs";
import takeOverRef from "./take-over-ref";
@@ -25,4 +26,12 @@ describe("linkComputerRefs", () => {
}),
).toBe("Please log in to Gmail. [take over](#take-over-3-browser)");
});
test("links every bot a message names", () => {
expect(
linkComputerRefs({
text: `${botRef({ id: 4 })} is on it. See [bot:x] and [bot:5](https://example.com).`,
}),
).toBe("[bot 4](#bot-4) is on it. See [bot:x] and [bot:5](https://example.com).");
});
});