stale/__tests__/classes/state-mock.ts

25 lines
597 B
TypeScript
Raw Normal View History

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);
}
rehydrate(): Promise<void> {
return Promise.resolve(undefined);
}
reset() {}
}
export const alwaysFalseStateMock = new StateMock();