authelia/server/test/mocks/AuthenticationRegulator.ts

16 lines
273 B
TypeScript
Raw Normal View History

2017-05-20 20:55:37 +00:00
import sinon = require("sinon");
2017-05-21 10:14:59 +00:00
export interface AuthenticationRegulatorMock {
mark: sinon.SinonStub;
regulate: sinon.SinonStub;
}
export function AuthenticationRegulatorMock() {
2017-05-20 20:55:37 +00:00
return {
mark: sinon.stub(),
regulate: sinon.stub()
};
2017-05-21 10:14:59 +00:00
}