diff options
| author | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-10-08 13:08:29 +0000 | 
|---|---|---|
| committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-10-08 13:19:28 +0000 | 
| commit | 68f6211aac4177f3a70a40031dabbd1b61840071 (patch) | |
| tree | f46720349e17c57db7bbfc55241b12c4410f2773 /e2e/completion_set.test.ts | |
| parent | f59a2dd8c7ac41798e077a795ea88f3bd580e81c (diff) | |
Clean e2e tests
Diffstat (limited to 'e2e/completion_set.test.ts')
| -rw-r--r-- | e2e/completion_set.test.ts | 13 | 
1 files changed, 3 insertions, 10 deletions
diff --git a/e2e/completion_set.test.ts b/e2e/completion_set.test.ts index 2a14b2c..facf991 100644 --- a/e2e/completion_set.test.ts +++ b/e2e/completion_set.test.ts @@ -1,7 +1,6 @@  import * as path from 'path';  import * as assert from 'assert'; -import settings from './settings';  import eventually from './eventually';  import { Builder, Lanthan } from 'lanthan';  import { WebDriver } from 'selenium-webdriver'; @@ -10,7 +9,6 @@ import Page from './lib/Page';  describe("completion on set commands", () => {    let lanthan: Lanthan;    let webdriver: WebDriver; -  let browser: any;    let page: Page;    before(async() => { @@ -19,11 +17,6 @@ describe("completion on set commands", () => {        .spyAddon(path.join(__dirname, '..'))        .build();      webdriver = lanthan.getWebDriver(); -    browser = lanthan.getWebExtBrowser(); - -    await browser.storage.local.set({ -      settings, -    });    });    after(async() => { @@ -44,9 +37,9 @@ describe("completion on set commands", () => {        let items = await console.getCompletions();        assert.strictEqual(items.length, 5);        assert.deepStrictEqual(items[0], { type: 'title', text: 'Properties' }); -      assert.ok(items[1].text.startsWith('hintchars')) -      assert.ok(items[2].text.startsWith('smoothscroll')) -      assert.ok(items[3].text.startsWith('nosmoothscroll')) +      assert.ok(items[1].text.startsWith('hintchars')); +      assert.ok(items[2].text.startsWith('smoothscroll')); +      assert.ok(items[3].text.startsWith('nosmoothscroll'));        assert.ok(items[4].text.startsWith('complete'))      });    });  | 
