mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
16 lines
431 B
TypeScript
16 lines
431 B
TypeScript
|
import Sinon = require("sinon");
|
||
|
import BluebirdPromise = require("bluebird");
|
||
|
|
||
|
import { INotifier } from "../../src/lib/notifiers/INotifier";
|
||
|
|
||
|
export class NotifierStub implements INotifier {
|
||
|
notifyStub: Sinon.SinonStub;
|
||
|
|
||
|
constructor() {
|
||
|
this.notifyStub = Sinon.stub();
|
||
|
}
|
||
|
|
||
|
notify(to: string, subject: string, link: string): BluebirdPromise<void> {
|
||
|
return this.notifyStub(to, subject, link);
|
||
|
}
|
||
|
}
|