aboutsummaryrefslogtreecommitdiff
path: root/e2e/mark.test.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 11:10:36 +0900
committerGitHub <noreply@github.com>2019-12-22 11:10:36 +0900
commitb1a6f374dca078dee2406ebe049715b826e37ca2 (patch)
tree5367c48648e2018f55f12d847baba94559e10040 /e2e/mark.test.ts
parentb2dcdedad729ff7087867da50e20578f9fc8fb29 (diff)
parentda72c2ddd916d79d134662e3985b53a4ac78af7a (diff)
Merge pull request #690 from ueokande/eslint-and-prettier
Eslint and prettier
Diffstat (limited to 'e2e/mark.test.ts')
-rw-r--r--e2e/mark.test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/e2e/mark.test.ts b/e2e/mark.test.ts
index f9f372b..c73423b 100644
--- a/e2e/mark.test.ts
+++ b/e2e/mark.test.ts
@@ -8,7 +8,7 @@ import { WebDriver } from 'selenium-webdriver';
import Page from './lib/Page';
describe("mark test", () => {
- let server = new TestServer().receiveContent('/',
+ const server = new TestServer().receiveContent('/',
`<!DOCTYPE html><html lang="en"><body style="width:10000px; height:10000px"></body></html>`,
);
let lanthan: Lanthan;
@@ -34,7 +34,7 @@ describe("mark test", () => {
});
it('should set a local mark and jump to it', async () => {
- let page = await Page.navigateTo(webdriver, server.url());
+ const page = await Page.navigateTo(webdriver, server.url());
await page.scrollTo(200, 200);
await page.sendKeys('m', 'a');
await page.scrollTo(500, 500);
@@ -63,8 +63,8 @@ describe("mark test", () => {
await page.sendKeys('\'', 'A');
await eventually(async() => {
- let tab = (await browser.tabs.query({ active: true }))[0];
- let url = new URL(tab.url);
+ const tab = (await browser.tabs.query({ active: true }))[0];
+ const url = new URL(tab.url);
assert.strictEqual(url.hash, '#first');
assert.strictEqual(await page.getScrollX(), 200);
@@ -77,7 +77,7 @@ describe("mark test", () => {
await page.scrollTo(500, 500);
await page.sendKeys('m', 'A');
- let tab = (await browser.tabs.query({ active: true }))[0];
+ const tab = (await browser.tabs.query({ active: true }))[0];
await browser.tabs.create({ url: server.url('/#second') });
await browser.tabs.remove(tab.id);
@@ -92,8 +92,8 @@ describe("mark test", () => {
await page.sendKeys('\'', 'A');
await eventually(async() => {
- let tab = (await browser.tabs.query({ active: true }))[0];
- let url = new URL(tab.url);
+ const tab = (await browser.tabs.query({ active: true }))[0];
+ const url = new URL(tab.url);
assert.strictEqual(url.hash, '#first');
});
});