Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { describe, expect, it } from "vitest";
import { resolveDiscordSlashCommandConfig } from "./commands.js";
describe("resolveDiscordSlashCommandConfig", () => {
it("defaults ephemeral to true when undefined", () => {
const result = resolveDiscordSlashCommandConfig(undefined);
expect(result.ephemeral).toBe(true);
});
it("defaults ephemeral to true when not explicitly false", () => {
const result = resolveDiscordSlashCommandConfig({});
expect(result.ephemeral).toBe(true);
});
it("sets ephemeral to false when explicitly false", () => {
const result = resolveDiscordSlashCommandConfig({ ephemeral: false });
expect(result.ephemeral).toBe(false);
});
it("keeps ephemeral true when explicitly true", () => {
const result = resolveDiscordSlashCommandConfig({ ephemeral: true });
expect(result.ephemeral).toBe(true);
});
});
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland