aboutsummaryrefslogtreecommitdiff
path: root/test/content
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-08-11 21:40:23 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-08-11 21:40:23 +0900
commit0b98a22eba4f7bbac215abd800293ac2be67b24d (patch)
treeae78b7edc460a79708742bff55c4c6fa55699e47 /test/content
parentf497109ecc801660dc23bbad8445b120cd75561e (diff)
Enable @typescript-eslint/no-extra-non-null-assertion
Diffstat (limited to 'test/content')
-rw-r--r--test/content/presenters/Hint.test.ts10
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;