From 8bbc3d9d159237f280c3e952cd1cb124601ed6d6 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 3 Dec 2020 23:15:24 +0900 Subject: Add operator tests --- test/background/mock/MockConsoleClient.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/background/mock/MockConsoleClient.ts (limited to 'test/background/mock/MockConsoleClient.ts') diff --git a/test/background/mock/MockConsoleClient.ts b/test/background/mock/MockConsoleClient.ts new file mode 100644 index 0000000..d1f8fc3 --- /dev/null +++ b/test/background/mock/MockConsoleClient.ts @@ -0,0 +1,23 @@ +import ConsoleClient from "../../../src/background/infrastructures/ConsoleClient"; + +export default class MockConsoleClient implements ConsoleClient { + hide(_tabId: number): Promise { + throw new Error("not implemented"); + } + + showCommand(_tabId: number, _command: string): Promise { + throw new Error("not implemented"); + } + + showError(_tabId: number, _message: string): Promise { + throw new Error("not implemented"); + } + + showFind(_tabId: number): Promise { + throw new Error("not implemented"); + } + + showInfo(_tabId: number, _message: string): Promise { + throw new Error("not implemented"); + } +} -- cgit v1.2.3