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

23 lines
400 B
TypeScript
Raw Normal View History

2017-05-20 07:49:05 +00:00
import sinon = require("sinon");
2017-05-21 20:45:54 +00: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()
};
}