mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
33 lines
637 B
TypeScript
33 lines
637 B
TypeScript
|
|
import Sinon = require("sinon");
|
|
import { INotifier } from "../../../../src/client/lib/INotifier";
|
|
|
|
export class NotifierStub implements INotifier {
|
|
successStub: Sinon.SinonStub;
|
|
errorStub: Sinon.SinonStub;
|
|
warnStub: Sinon.SinonStub;
|
|
infoStub: Sinon.SinonStub;
|
|
|
|
constructor() {
|
|
this.successStub = Sinon.stub();
|
|
this.errorStub = Sinon.stub();
|
|
this.warnStub = Sinon.stub();
|
|
this.infoStub = Sinon.stub();
|
|
}
|
|
|
|
success(msg: string) {
|
|
this.successStub();
|
|
}
|
|
|
|
error(msg: string) {
|
|
this.errorStub();
|
|
}
|
|
|
|
warning(msg: string) {
|
|
this.warnStub();
|
|
}
|
|
|
|
info(msg: string) {
|
|
this.infoStub();
|
|
}
|
|
} |