aboutsummaryrefslogtreecommitdiff
path: root/test/content/mock/MockClipboardRepository.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/content/mock/MockClipboardRepository.ts')
-rw-r--r--test/content/mock/MockClipboardRepository.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/content/mock/MockClipboardRepository.ts b/test/content/mock/MockClipboardRepository.ts
new file mode 100644
index 0000000..c6e53bd
--- /dev/null
+++ b/test/content/mock/MockClipboardRepository.ts
@@ -0,0 +1,16 @@
+import ClipboardRepository from "../../../src/content/repositories/ClipboardRepository";
+
+export default class MockClipboardRepository implements ClipboardRepository {
+ private value: string;
+
+ constructor(initValue = "") {
+ this.value = initValue;
+ }
+ read(): string {
+ return this.value;
+ }
+
+ write(text: string): void {
+ this.value = text;
+ }
+}