Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

676 B
Raw Blame
import { render } from "react-email";
import { createElement } from "react";
import { describe, expect, it } from "vite-plus/test";
import TestEmail from "./test-email";

describe("TestEmail", () => {
  it("names the recipient and instance without any links into Kaneo", async () => {
    const html = await render(
      createElement(TestEmail, {
        email: "[email protected]",
        instance: "kaneo.example.com",
      }),
    );

    expect(html).toContain("Your email settings work");
    expect(html).toContain("[email protected]");
    expect(html).toContain("kaneo.example.com");
    expect(html).not.toMatch(/href="https?:\/\/kaneo\.example\.com/);
  });
});