aboutsummaryrefslogtreecommitdiff
path: root/test/content/presenters
diff options
context:
space:
mode:
Diffstat (limited to 'test/content/presenters')
-rw-r--r--test/content/presenters/Hint.test.ts2
-rw-r--r--test/content/presenters/NavigationPresenter.test.ts7
2 files changed, 4 insertions, 5 deletions
diff --git a/test/content/presenters/Hint.test.ts b/test/content/presenters/Hint.test.ts
index 708ddaa..7daa63d 100644
--- a/test/content/presenters/Hint.test.ts
+++ b/test/content/presenters/Hint.test.ts
@@ -12,7 +12,7 @@ describe('Hint', () => {
describe('#constructor', () => {
it('creates a hint element with tag name', () => {
const link = document.getElementById('test-link');
- const hint = new Hint(link, 'abc');
+ new Hint(link, 'abc');
const elem = document.querySelector('.vimvixen-hint');
expect(elem.textContent.trim()).to.be.equal('abc');
diff --git a/test/content/presenters/NavigationPresenter.test.ts b/test/content/presenters/NavigationPresenter.test.ts
index 5b6a8ca..6aa057b 100644
--- a/test/content/presenters/NavigationPresenter.test.ts
+++ b/test/content/presenters/NavigationPresenter.test.ts
@@ -1,9 +1,8 @@
-import NavigationPresenter, { NavigationPresenterImpl }
- from '../../../src/content/presenters/NavigationPresenter';
+import { NavigationPresenterImpl } from '../../../src/content/presenters/NavigationPresenter';
import { expect } from 'chai';
-describe('NavigationPresenter', () => {
- let sut;
+describe('NavigationPresenterImpl', () => {
+ let sut: NavigationPresenterImpl;
const testRel = (done, rel, html) => {
const method = rel === 'prev' ? sut.openLinkPrev.bind(sut) : sut.openLinkNext.bind(sut);