2023-06-24 05:13:39 +08:00
|
|
|
import {IState} from '../../src/interfaces/state/state';
|
2023-06-22 19:20:34 +08:00
|
|
|
import {IIssue} from '../../src/interfaces/issue';
|
|
|
|
|
|
|
|
export class StateMock implements IState {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
addIssueToProcessed(issue: IIssue) {}
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
isIssueProcessed(issue: IIssue) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
persist(): Promise<void> {
|
|
|
|
return Promise.resolve(undefined);
|
|
|
|
}
|
|
|
|
|
2023-07-05 00:29:58 +08:00
|
|
|
restore(): Promise<void> {
|
2023-06-22 19:20:34 +08:00
|
|
|
return Promise.resolve(undefined);
|
|
|
|
}
|
|
|
|
|
|
|
|
reset() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
export const alwaysFalseStateMock = new StateMock();
|