aboutsummaryrefslogtreecommitdiff
path: root/test/content/operators/impls/MockConsoleFramePresenter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/content/operators/impls/MockConsoleFramePresenter.ts')
-rw-r--r--test/content/operators/impls/MockConsoleFramePresenter.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/content/operators/impls/MockConsoleFramePresenter.ts b/test/content/operators/impls/MockConsoleFramePresenter.ts
new file mode 100644
index 0000000..f8ac70b
--- /dev/null
+++ b/test/content/operators/impls/MockConsoleFramePresenter.ts
@@ -0,0 +1,22 @@
+import ConsoleFramePresenter from "../../../../src/content/presenters/ConsoleFramePresenter";
+
+export default class MockConsoleFramePresenter
+ implements ConsoleFramePresenter {
+ constructor(public attached: boolean) {}
+
+ attach(): void {
+ this.attached = true;
+ }
+
+ detach(): void {
+ this.attached = false;
+ }
+
+ blur(): void {
+ throw new Error("not implemented");
+ }
+
+ resize(_width: number, _height: number): void {
+ throw new Error("not implemented");
+ }
+}