#23837 Plaintext mod <> for username used #23837

This commit is contained in:
SidheshwarSarangal 2024-12-03 23:44:09 +05:30
parent d2acce1221
commit 1e6d183d00
194 changed files with 1401 additions and 1401 deletions

View file

@ -50,8 +50,8 @@ describe("buildQuery", () => {
});
it("combines the keyChar and text of the suggestion in the query", () => {
const handledSuggestion = { keyChar: "@" as const, text: "alice", type: "mention" as const };
expect(buildQuery(handledSuggestion)).toBe("@alice");
const handledSuggestion = { keyChar: "@" as const, text: "<alice>", type: "mention" as const };
expect(buildQuery(handledSuggestion)).toBe("@<alice>");
const handledCommand = { keyChar: "/" as const, text: "spoiler", type: "mention" as const };
expect(buildQuery(handledCommand)).toBe("/spoiler");