25 lines
591 B
TypeScript
25 lines
591 B
TypeScript
|
import {IState} from '../../src/interfaces/state';
|
||
|
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();
|