13 lines
449 B
TypeScript
13 lines
449 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { NotificationChannels } from "./NotificationChannels";
|
|
|
|
describe("NotificationChannels", () => {
|
|
it("uses translation keys for visible channel descriptions", () => {
|
|
for (const channel of NotificationChannels) {
|
|
expect(channel.descriptionKey).toBe(`notifications.admin.channelDescriptions.${channel.name}`);
|
|
expect(channel).not.toHaveProperty("description");
|
|
}
|
|
});
|
|
});
|