From 6814b7c3e4795c76fc9c0cfdc9de0a9d558d6c8c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 27 Jul 2021 21:46:35 +0900 Subject: Add tests to find --- test/background/mock/MockFindClient.ts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'test/background/mock/MockFindClient.ts') diff --git a/test/background/mock/MockFindClient.ts b/test/background/mock/MockFindClient.ts index bd25a27..dd6d8f3 100644 --- a/test/background/mock/MockFindClient.ts +++ b/test/background/mock/MockFindClient.ts @@ -1,24 +1,23 @@ -import FindClient, { - FindResult, -} from "../../../src/background/clients/FindClient"; +import FindClient from "../../../src/background/clients/FindClient"; export default class MockFindClient implements FindClient { - highlightAll(): Promise { - throw new Error("not implemented"); - } - - removeHighlights(): Promise { + findNext( + _tabId: number, + _frameId: number, + _keyword: string + ): Promise { throw new Error("not implemented"); } - selectKeyword( + findPrev( _tabId: number, - _rangeData: browser.find.RangeData - ): Promise { + _frameId: number, + _keyword: string + ): Promise { throw new Error("not implemented"); } - startFind(_keyword: string): Promise { + clearSelection(_tabId: number, _frameId: number): Promise { throw new Error("not implemented"); } } -- cgit v1.2.3