diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-10-09 11:50:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 11:50:52 +0000 |
commit | 18c72bf15c6bc7e4c88dd06d38ff861f29d66b1b (patch) | |
tree | f46720349e17c57db7bbfc55241b12c4410f2773 /e2e/options.test.ts | |
parent | 8eddcc1785a85bbe74be254d1055ebe5125dad10 (diff) | |
parent | 68f6211aac4177f3a70a40031dabbd1b61840071 (diff) |
Merge pull request #655 from ueokande/partial-blacklist
Partial blacklist
Diffstat (limited to 'e2e/options.test.ts')
-rw-r--r-- | e2e/options.test.ts | 14 |
1 files changed, 7 insertions, 7 deletions
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('/', - `<!DOCTYPE html><html lang="en"><body style="width:10000px; height:10000px"></body></html">`, + `<!DOCTYPE html><html lang="en"><body style="width:10000px; height:10000px"></body></html>`, ); 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:')) |