purescript-email-address/qed-mail/test/lib.test.ts
2024-02-07 15:23:45 -06:00

14 lines
386 B
TypeScript

import { checkEmail } from "../src/index";
describe("Check Email by multilayer pipelines", () => {
it("reachable", async () => {
const result = await checkEmail("chotnt741@gmail.com");
expect(result.reachable).toBe(true);
});
it("unreachable", async () => {
const result = await checkEmail("chotnt999@gmail.com");
expect(result.reachable).toBe(false);
});
});