From 68f6211aac4177f3a70a40031dabbd1b61840071 Mon Sep 17 00:00:00 2001 From: Shin'ya UEOKA Date: Tue, 8 Oct 2019 13:08:29 +0000 Subject: Clean e2e tests --- e2e/navigate.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'e2e/navigate.test.ts') diff --git a/e2e/navigate.test.ts b/e2e/navigate.test.ts index 8ee209b..15c5a31 100644 --- a/e2e/navigate.test.ts +++ b/e2e/navigate.test.ts @@ -16,7 +16,7 @@ const newApp = () => { prev next - `); + `); }); server.handle('/pagenation-link/:page', (req, res) => { @@ -27,7 +27,7 @@ const newApp = () => { - `); + `); }); server.receiveContent('/reload', ` @@ -36,7 +36,7 @@ const newApp = () => { - `); + `); server.receiveContent('/*', `ok`); @@ -75,7 +75,7 @@ describe("navigate test", () => { for (let tab of tabs.slice(1)) { await browser.tabs.remove(tab.id); } - }) + }); it('should go to parent path without hash by gu', async () => { let page = await Page.navigateTo(webdriver, server.url('/a/b/c')); @@ -95,7 +95,7 @@ describe("navigate test", () => { await eventually(async() => { let tab = (await browser.tabs.query({}))[0]; let url = new URL(tab.url); - assert.strictEqual(url.hash, '') + assert.strictEqual(url.hash, ''); assert.strictEqual(url.pathname, `/a/b/c`) }); }); @@ -213,7 +213,7 @@ describe("navigate test", () => { await page.sendKeys('r'); - let after + let after; await eventually(async() => { let tab = (await browser.tabs.query({}))[0]; after = Number(new URL(tab.url).hash.split('#')[1]); @@ -239,7 +239,7 @@ describe("navigate test", () => { await page.sendKeys(Key.SHIFT, 'R'); - let after + let after; await eventually(async() => { let tab = (await browser.tabs.query({}))[0]; after = Number(new URL(tab.url).hash.split('#')[1]); -- cgit v1.2.3