mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
17 lines
340 B
TypeScript
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()
|
||
|
};
|
||
|
}
|