authelia/test/server/mocks/u2f.ts
2017-06-16 18:16:38 +02:00

17 lines
340 B
TypeScript

import sinon = require("sinon");
export interface U2FMock {
request: sinon.SinonStub;
checkSignature: sinon.SinonStub;
checkRegistration: sinon.SinonStub;
}
export function U2FMock(): U2FMock {
return {
request: sinon.stub(),
checkSignature: sinon.stub(),
checkRegistration: sinon.stub()
};
}