authelia/test/server/mocks/TOTPValidator.ts

13 lines
216 B
TypeScript
Raw Normal View History

2017-05-21 10:14:59 +00:00
import sinon = require("sinon");
export interface TOTPValidatorMock {
validate: sinon.SinonStub;
}
export function TOTPValidatorMock(): TOTPValidatorMock {
return {
validate: sinon.stub()
};
}