Files
omo-bot/tests/commands/ping.test.ts
T
zwitschi f6efd96733
CI-CD / Bot Lint Test Build (push) Failing after 11s
CI-CD / Dashboard Lint Build (push) Successful in 14s
CI-CD / Deploy to Coolify (push) Has been skipped
feat: Add deployment guide and update README for Coolify setup; include dotenv for environment variable management
2026-05-17 17:31:25 +02:00

15 lines
400 B
TypeScript

import { ChatInputCommandInteraction } from "discord.js";
import { pingCommand } from "../../src/commands/ping";
describe("pingCommand", () => {
it("replies with Pong", async () => {
const reply = jest.fn().mockResolvedValue(undefined);
await pingCommand.execute({
reply,
} as unknown as ChatInputCommandInteraction);
expect(reply).toHaveBeenCalledWith("Pong!");
});
});