aboutsummaryrefslogtreecommitdiff
path: root/e2e/completion.test.ts
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2019-09-29 00:49:24 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2019-09-29 00:52:56 +0000
commit9f0bc5732823505c91ce6b5ba3aa8e4b60ac93f6 (patch)
treef3a75c0b41d8fe2b1e6ca730501e36cee5701705 /e2e/completion.test.ts
parent1b92be636008e9211f460479e246331ba4a1f8f1 (diff)
Remove deprecated assert
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 67577bf..28c1913 100644
--- a/e2e/completion.test.ts
+++ b/e2e/completion.test.ts
@@ -40,8 +40,8 @@ describe("general completion test", () => {
let console = await page.showConsole();
let items = await console.getCompletions();
- assert.equal(items.length, 10);
- assert.deepEqual(items[0], { type: 'title', text: 'Console Command' });
+ assert.strictEqual(items.length, 10);
+ assert.deepStrictEqual(items[0], { type: 'title', text: 'Console Command' });
assert.ok(items[1].text.startsWith('set'))
assert.ok(items[2].text.startsWith('open'))
assert.ok(items[3].text.startsWith('tabopen'))
@@ -52,8 +52,8 @@ describe("general completion test", () => {
await console.inputKeys('b');
let items = await console.getCompletions();
- assert.equal(items.length, 4);
- assert.deepEqual(items[0], { type: 'title', text: 'Console Command' });
+ assert.strictEqual(items.length, 4);
+ assert.deepStrictEqual(items[0], { type: 'title', text: 'Console Command' });
assert.ok(items[1].text.startsWith('buffer'))
assert.ok(items[2].text.startsWith('bdelete'))
assert.ok(items[3].text.startsWith('bdeletes'))
@@ -68,33 +68,33 @@ describe("general completion test", () => {
await console.inputKeys('b');
await eventually(async() => {
let items = await console.getCompletions();
- assert.equal(items.length, 4);
+ assert.strictEqual(items.length, 4);
});
await console.sendKeys(Key.TAB);
await eventually(async() => {
let items = await console.getCompletions();
assert.ok(items[1].highlight)
- assert.equal(await console.currentValue(), 'buffer');
+ assert.strictEqual(await console.currentValue(), 'buffer');
});
await console.sendKeys(Key.TAB, Key.TAB);
await eventually(async() => {
let items = await console.getCompletions();
assert.ok(items[3].highlight)
- assert.equal(await console.currentValue(), 'bdeletes');
+ assert.strictEqual(await console.currentValue(), 'bdeletes');
});
await console.sendKeys(Key.TAB);
await eventually(async() => {
- assert.equal(await console.currentValue(), 'b');
+ assert.strictEqual(await console.currentValue(), 'b');
});
await console.sendKeys(Key.SHIFT, Key.TAB);
await eventually(async() => {
let items = await console.getCompletions();
assert.ok(items[3].highlight)
- assert.equal(await console.currentValue(), 'bdeletes');
+ assert.strictEqual(await console.currentValue(), 'bdeletes');
});
});
});