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

13 lines
216 B
TypeScript
Raw Normal View History

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