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.

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

describe("EmailVerificationEmail", () => {
  it("asks the person to confirm their address", async () => {
    const html = await render(
      createElement(EmailVerificationEmail, {
        verificationLink: "https://kaneo.example/api/auth/verify-email?token=x",
        locale: "ja-JP",
      }),
    );
    expect(html).toContain("メールアドレスの確認");
    expect(html).toContain("verify-email?token=x");
  });
});