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

16 lines
273 B
TypeScript
Raw Normal View History

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