parent
d2acce1221
commit
1e6d183d00
194 changed files with 1401 additions and 1401 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue