1 parent
3646af9c04
commit
750fc9e238
8 files changed
+306
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { describe, expect, it } from "@jest/globals";
|
||||
import { NotificationModel } from "@/domain/notifications/notification.model.js";
|
||||
import { NotificationChannels } from "@/domain/notifications/notification.type.js";
|
||||
|
||||
describe("NotificationChannels", () => {
|
||||
it("includes Rocket.Chat", () => {
|
||||
expect(NotificationChannels).toContain("rocket_chat");
|
||||
});
|
||||
|
||||
it("allows Rocket.Chat to be persisted", () => {
|
||||
const typePath = NotificationModel.schema.path("type") as unknown as { enumValues: string[] };
|
||||
|
||||
expect(typePath.enumValues).toContain("rocket_chat");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user