aboutsummaryrefslogtreecommitdiff
path: root/e2e/scroll.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/scroll.test.ts
parent1b92be636008e9211f460479e246331ba4a1f8f1 (diff)
Remove deprecated assert
Diffstat (limited to 'e2e/scroll.test.ts')
-rw-r--r--e2e/scroll.test.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/e2e/scroll.test.ts b/e2e/scroll.test.ts
index 1f3686a..5145265 100644
--- a/e2e/scroll.test.ts
+++ b/e2e/scroll.test.ts
@@ -40,7 +40,7 @@ describe("scroll test", () => {
await page.sendKeys('j');
let scrollY = await page.getScrollY();
- assert.equal(scrollY, 64);
+ assert.strictEqual(scrollY, 64);
});
it('scrolls down by k', async () => {
@@ -48,7 +48,7 @@ describe("scroll test", () => {
await page.sendKeys('k');
let scrollY = await page.getScrollY();
- assert.equal(scrollY, 136);
+ assert.strictEqual(scrollY, 136);
});
it('scrolls left by h', async () => {
@@ -56,7 +56,7 @@ describe("scroll test", () => {
await page.sendKeys('h');
let pageXOffset = await webdriver.executeScript(() => window.pageXOffset) as number;
- assert.equal(pageXOffset, 36);
+ assert.strictEqual(pageXOffset, 36);
});
it('scrolls left by l', async () => {
@@ -64,7 +64,7 @@ describe("scroll test", () => {
await page.sendKeys('l');
let pageXOffset = await webdriver.executeScript(() => window.pageXOffset) as number;
- assert.equal(pageXOffset, 164);
+ assert.strictEqual(pageXOffset, 164);
});
it('scrolls top by gg', async () => {
@@ -72,7 +72,7 @@ describe("scroll test", () => {
await page.sendKeys('g', 'g');
let scrollY = await page.getScrollY();
- assert.equal(scrollY, 0);
+ assert.strictEqual(scrollY, 0);
});
it('scrolls bottom by G', async () => {