diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-08-11 21:34:11 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-08-11 21:34:11 +0900 |
commit | 1f10eac90011e6c3c1ad20ce91b358911dc74dcb (patch) | |
tree | 7913507c61396b65512f54c34c42e92a240e3f11 /test | |
parent | 3a4bdca8ba11a6448f4d16169e7a5161b2ad2e94 (diff) |
Enable @typescript-eslint/ban-types rule
Diffstat (limited to 'test')
-rw-r--r-- | test/background/completion/TabCompletionUseCase.test.ts | 2 | ||||
-rw-r--r-- | test/background/usecases/NavigateUseCase.test.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/background/completion/TabCompletionUseCase.test.ts b/test/background/completion/TabCompletionUseCase.test.ts index d8aa385..e1a88a2 100644 --- a/test/background/completion/TabCompletionUseCase.test.ts +++ b/test/background/completion/TabCompletionUseCase.test.ts @@ -18,7 +18,7 @@ class MockTabRepository implements TabRepositoryImpl { } class MockTabPresenter implements TabPresenter { - create(_url: string, _opts?: object): Promise<browser.tabs.Tab> { + create(_url: string, _opts?: unknown): Promise<browser.tabs.Tab> { throw new Error("not implemented"); } diff --git a/test/background/usecases/NavigateUseCase.test.ts b/test/background/usecases/NavigateUseCase.test.ts index 7263627..086d6cd 100644 --- a/test/background/usecases/NavigateUseCase.test.ts +++ b/test/background/usecases/NavigateUseCase.test.ts @@ -5,7 +5,7 @@ import NavigateClient from "../../../src/background/clients/NavigateClient"; import * as sinon from "sinon"; class MockTabPresenter implements TabPresenter { - create(_url: string, _opts?: object): Promise<browser.tabs.Tab> { + create(_url: string, _opts?: unknown): Promise<browser.tabs.Tab> { throw new Error("not implemented"); } |