blob: c6e53bdf29475e104d2986a7ace77a3cc72bbfca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}
}
|