mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
18 lines
546 B
TypeScript
18 lines
546 B
TypeScript
/*process.env.NODE_ENV = "test";
|
|
|
|
import chai, { expect } from "chai";
|
|
import chaiaspromised from "chai-as-promised";
|
|
import mail from "../lib/mail";
|
|
|
|
chai.use(chaiaspromised);
|
|
const should = chai.should();
|
|
|
|
describe("mail", () => {
|
|
it("should succesfully send a email", async () => {
|
|
//NOTE THESE TESTS ONLY WORK WITH DEV BEING TRUE
|
|
const info = await mail.sendMail('"Chai Testing suite" <[email protected]>', "[email protected]", "Hello", "Test");
|
|
info.rejected.length.should.eq(0);
|
|
info.accepted.length.should.eq(1);
|
|
});
|
|
});
|
|
*/ |