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/options.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'e2e/options.test.ts') diff --git a/e2e/options.test.ts b/e2e/options.test.ts index 8d5023f..f418dc3 100644 --- a/e2e/options.test.ts +++ b/e2e/options.test.ts @@ -10,7 +10,7 @@ import OptionPage from './lib/OptionPage'; describe("options page", () => { let server = new TestServer().receiveContent('/', - ``, + ``, ); let lanthan: Lanthan; let webdriver: WebDriver; @@ -39,22 +39,22 @@ describe("options page", () => { for (let tab of tabs.slice(1)) { await browser.tabs.remove(tab.id); } - }) + }); it('saves current config on blur', async () => { let page = await OptionPage.open(lanthan); let jsonPage = await page.asJSONOptionPage(); - await jsonPage.updateSettings(`{ "blacklist": [ "https://example.com" ] }`) + await jsonPage.updateSettings(`{ "blacklist": [ "https://example.com" ] }`); let { settings } = await browser.storage.local.get('settings'); - assert.strictEqual(settings.source, 'json') - assert.strictEqual(settings.json, '{ "blacklist": [ "https://example.com" ] } ') + assert.strictEqual(settings.source, 'json'); + assert.strictEqual(settings.json, '{ "blacklist": [ "https://example.com" ] } '); await jsonPage.updateSettings(`invalid json`); settings = (await browser.storage.local.get('settings')).settings; - assert.strictEqual(settings.source, 'json') - assert.strictEqual(settings.json, '{ "blacklist": [ "https://example.com" ] } ') + assert.strictEqual(settings.source, 'json'); + assert.strictEqual(settings.json, '{ "blacklist": [ "https://example.com" ] } '); let message = await jsonPage.getErrorMessage(); assert.ok(message.startsWith('SyntaxError:')) -- cgit v1.2.3