authelia/test/unit/server/mocks/nodemailer.ts

23 lines
400 B
TypeScript
Raw Normal View History

2017-05-20 14:49:05 +07:00
import sinon = require("sinon");
2017-05-22 03:45:54 +07:00
export interface NodemailerMock {
createTransport: sinon.SinonStub;
}
export function NodemailerMock(): NodemailerMock {
return {
createTransport: sinon.stub()
};
}
export interface NodemailerTransporterMock {
sendMail: sinon.SinonStub;
}
export function NodemailerTransporterMock() {
return {
sendMail: sinon.stub()
};
}