mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
20 lines
508 B
TypeScript
20 lines
508 B
TypeScript
|
|
import sinon = require("sinon");
|
|
import authdog = require("authdog");
|
|
|
|
export interface AuthdogMock {
|
|
startRegistration: sinon.SinonStub;
|
|
finishRegistration: sinon.SinonStub;
|
|
startAuthentication: sinon.SinonStub;
|
|
finishAuthentication: sinon.SinonStub;
|
|
}
|
|
|
|
export function AuthdogMock(): AuthdogMock {
|
|
return {
|
|
startRegistration: sinon.stub(),
|
|
finishAuthentication: sinon.stub(),
|
|
startAuthentication: sinon.stub(),
|
|
finishRegistration: sinon.stub()
|
|
};
|
|
}
|