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

13 lines
216 B
TypeScript

import sinon = require("sinon");
export interface TOTPValidatorMock {
validate: sinon.SinonStub;
}
export function TOTPValidatorMock(): TOTPValidatorMock {
return {
validate: sinon.stub()
};
}