Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/chat/chat.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2699,6 +2699,9 @@ describe("ChatService direct messages", () => {

it("accepts every reaction on the list", async () => {
for (const reaction of ChatService.REACTIONS) {
// The list is longer than a second's allowance; the limit has its own
// tests.
rates = {};
await expect(react(reaction)).resolves.toMatchObject({
toggled: true,
});
Expand All @@ -2711,6 +2714,24 @@ describe("ChatService direct messages", () => {
"fire",
"wow",
"sad",
"thumbsdown",
"skull",
"sob",
"rofl",
"angry",
"thinking",
"eyes",
"hundred",
"target",
"clap",
"pray",
"handshake",
"tada",
"cool",
"salute",
"muscle",
"goat",
"clown",
]);
});

Expand Down
18 changes: 18 additions & 0 deletions src/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,24 @@ export class ChatService {
"fire",
"wow",
"sad",
"thumbsdown",
"skull",
"sob",
"rofl",
"angry",
"thinking",
"eyes",
"hundred",
"target",
"clap",
"pray",
"handshake",
"tada",
"cool",
"salute",
"muscle",
"goat",
"clown",
] as const;

// Every toggle is a broadcast to the whole room, so this is what keeps one
Expand Down
Loading