Files
server/src/Tests/mail.test.ts
T
2022-05-20 18:02:45 +02:00

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);
});
});
*/