diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-08-12 21:01:02 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 21:01:02 +0900 |
commit | bf6762f0c0c47a20b6a3e722711fafc6611793a9 (patch) | |
tree | 67bfdcee88c8fb2bc19277e58684dcf5d2d03be4 /test/content | |
parent | 6f7f501c699c53eb63ce5576cf2464ecf4cfe162 (diff) | |
parent | 7e8c99d43a402b9e025a710a00879d557ac5b071 (diff) |
Merge pull request #798 from ueokande/eslint
Improve eslint
Diffstat (limited to 'test/content')
-rw-r--r-- | test/content/presenters/Hint.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/content/presenters/Hint.test.ts b/test/content/presenters/Hint.test.ts index f961f88..1a7c868 100644 --- a/test/content/presenters/Hint.test.ts +++ b/test/content/presenters/Hint.test.ts @@ -13,17 +13,17 @@ describe("Hint", () => { describe("#constructor", () => { it("creates a hint element with tag name", () => { - const link = document.getElementById("test-link")!!; + const link = document.getElementById("test-link")!; new Hint(link, "abc"); const elem = document.querySelector(".vimvixen-hint"); - expect(elem!!.textContent!!.trim()).to.be.equal("abc"); + expect(elem!.textContent!.trim()).to.be.equal("abc"); }); }); describe("#show", () => { it("shows an element", () => { - const link = document.getElementById("test-link")!!; + const link = document.getElementById("test-link")!; const hint = new Hint(link, "abc"); hint.hide(); hint.show(); @@ -46,10 +46,10 @@ describe("Hint", () => { describe("#remove", () => { it("removes an element", () => { - const link = document.getElementById("test-link")!!; + const link = document.getElementById("test-link")!; const hint = new Hint(link, "abc"); - const elem = document.querySelector(".vimvixen-hint")!!; + const elem = document.querySelector(".vimvixen-hint")!; expect(elem.parentElement).to.not.be.null; hint.remove(); expect(elem.parentElement).to.be.null; |