aboutsummaryrefslogtreecommitdiff
path: root/e2e/completion.test.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:28:14 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:48:39 +0900
commit029d5365e7d74e87375fccb8db097b7c2df3f7f4 (patch)
tree6a24c719da9c60461c7e2fe120b0d42af9e580f2 /e2e/completion.test.ts
parentd72012529bcd820598fa64e1aa20dab1c16acaa5 (diff)
npm run lint:fix
Diffstat (limited to 'e2e/completion.test.ts')
-rw-r--r--e2e/completion.test.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/e2e/completion.test.ts b/e2e/completion.test.ts
index e98e1c2..dd4477f 100644
--- a/e2e/completion.test.ts
+++ b/e2e/completion.test.ts
@@ -30,9 +30,9 @@ describe("general completion test", () => {
});
it('should all commands on empty line', async() => {
- let console = await page.showConsole();
+ const console = await page.showConsole();
- let items = await console.getCompletions();
+ const items = await console.getCompletions();
assert.strictEqual(items.length, 11);
assert.deepStrictEqual(items[0], { type: 'title', text: 'Console Command' });
assert.ok(items[1].text.startsWith('set'));
@@ -41,10 +41,10 @@ describe("general completion test", () => {
});
it('should only commands filtered by prefix', async() => {
- let console = await page.showConsole();
+ const console = await page.showConsole();
await console.inputKeys('b');
- let items = await console.getCompletions();
+ const items = await console.getCompletions();
assert.strictEqual(items.length, 4);
assert.deepStrictEqual(items[0], { type: 'title', text: 'Console Command' });
assert.ok(items[1].text.startsWith('buffer'));
@@ -57,23 +57,23 @@ describe("general completion test", () => {
// > bdeletes
// : b
it('selects completion items by <Tab>/<S-Tab> keys', async() => {
- let console = await page.showConsole();
+ const console = await page.showConsole();
await console.inputKeys('b');
await eventually(async() => {
- let items = await console.getCompletions();
+ const items = await console.getCompletions();
assert.strictEqual(items.length, 4);
});
await console.sendKeys(Key.TAB);
await eventually(async() => {
- let items = await console.getCompletions();
+ const items = await console.getCompletions();
assert.ok(items[1].highlight);
assert.strictEqual(await console.currentValue(), 'buffer');
});
await console.sendKeys(Key.TAB, Key.TAB);
await eventually(async() => {
- let items = await console.getCompletions();
+ const items = await console.getCompletions();
assert.ok(items[3].highlight);
assert.strictEqual(await console.currentValue(), 'bdeletes');
});
@@ -85,7 +85,7 @@ describe("general completion test", () => {
await console.sendKeys(Key.SHIFT, Key.TAB);
await eventually(async() => {
- let items = await console.getCompletions();
+ const items = await console.getCompletions();
assert.ok(items[3].highlight);
assert.strictEqual(await console.currentValue(), 'bdeletes');
});