Got rid of unnecessary check for empty message from user (Fluxer doesn't allow this to happen)

Removed export of token
This commit is contained in:
Aster Fialla
2026-02-24 20:15:00 -05:00
parent 1d9d9600e5
commit 6d82a067a1
2 changed files with 3 additions and 17 deletions

View File

@@ -87,19 +87,6 @@ describe('bot', () => {
expect(res).toBeUndefined();
})
test('on message creation, if message is empty, return', async () => {
// Arrange
const message = {
content: " ",
author: {
bot: false
}
}
// Act
const res = await handleMessageCreate(message);
expect(res).toBeUndefined();
})
test("if message doesn't start with bot prefix, call sendMessageAsMember", async () => {
// Arrange
webhookHelper.sendMessageAsMember.mockResolvedValue();