aboutsummaryrefslogtreecommitdiff
path: root/test/background/mock/MockRepeatRepository.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/background/mock/MockRepeatRepository.ts')
-rw-r--r--test/background/mock/MockRepeatRepository.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/background/mock/MockRepeatRepository.ts b/test/background/mock/MockRepeatRepository.ts
new file mode 100644
index 0000000..1a686c8
--- /dev/null
+++ b/test/background/mock/MockRepeatRepository.ts
@@ -0,0 +1,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;
+ }
+}