aboutsummaryrefslogtreecommitdiff
path: root/test/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-08-12 21:01:02 +0900
committerGitHub <noreply@github.com>2020-08-12 21:01:02 +0900
commitbf6762f0c0c47a20b6a3e722711fafc6611793a9 (patch)
tree67bfdcee88c8fb2bc19277e58684dcf5d2d03be4 /test/background
parent6f7f501c699c53eb63ce5576cf2464ecf4cfe162 (diff)
parent7e8c99d43a402b9e025a710a00879d557ac5b071 (diff)
Merge pull request #798 from ueokande/eslint
Improve eslint
Diffstat (limited to 'test/background')
-rw-r--r--test/background/completion/TabCompletionUseCase.test.ts2
-rw-r--r--test/background/repositories/Mark.test.ts4
-rw-r--r--test/background/usecases/NavigateUseCase.test.ts2
3 files changed, 4 insertions, 4 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/repositories/Mark.test.ts b/test/background/repositories/Mark.test.ts
index 5cee5b6..3b054e5 100644
--- a/test/background/repositories/Mark.test.ts
+++ b/test/background/repositories/Mark.test.ts
@@ -13,13 +13,13 @@ describe("background/repositories/mark", () => {
await repository.setMark("A", mark);
- let got = (await repository.getMark("A"))!!;
+ let got = (await repository.getMark("A"))!;
expect(got.tabId).to.equal(1);
expect(got.url).to.equal("http://example.com");
expect(got.x).to.equal(10);
expect(got.y).to.equal(30);
- got = (await repository.getMark("B"))!!;
+ got = (await repository.getMark("B"))!;
expect(got).to.be.undefined;
});
});
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");
}