aboutsummaryrefslogtreecommitdiff
path: root/test/background/mock/MockRepeatRepository.ts
blob: 1a686c8b1189893d7a9e60c95bf63259a91e13ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import RepeatRepository from "../../../src/background/repositories/RepeatRepository";
import { Operation } from "../../../src/shared/operations";

export default class MockRepeatRepository implements RepeatRepository {
  private op: Operation | undefined = undefined;

  getLastOperation(): Operation | undefined {
    return this.op;
  }

  setLastOperation(op: Operation): void {
    this.op = op;
  }
}