From 13e0cdec024dacb528002c239a326317c55cc639 Mon Sep 17 00:00:00 2001 From: Andrei Babkou Date: Sun, 1 May 2022 00:29:03 +0300 Subject: [PATCH] ref(tests): fix eslint errors --- src/tests/functional/frame_tests.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/tests/functional/frame_tests.ts b/src/tests/functional/frame_tests.ts index f59ac731c..186de4da4 100644 --- a/src/tests/functional/frame_tests.ts +++ b/src/tests/functional/frame_tests.ts @@ -585,15 +585,20 @@ export class FrameTests extends TurboDriveTestCase { await this.nextBeat const eventLogs = await this.eventLogChannel.read() - const fetchLogs = eventLogs.filter(([name, options]) => - name == "turbo:before-fetch-request" && options?.url?.includes('/src/tests/fixtures/frames/frame_for_eager.html') + const fetchLogs = eventLogs.filter( + ([name, options]) => + name == "turbo:before-fetch-request" && + options?.url?.includes("/src/tests/fixtures/frames/frame_for_eager.html") ) this.assert.equal(fetchLogs.length, 1) - const src = await this.attributeForSelector("#eager-loaded-frame", "src") ?? "" + const src = (await this.attributeForSelector("#eager-loaded-frame", "src")) ?? "" this.assert.ok(src.includes("/src/tests/fixtures/frames/frame_for_eager.html"), "updates src attribute") this.assert.equal(await (await this.querySelector("h1")).getVisibleText(), "Eager-loaded frame") - this.assert.equal(await (await this.querySelector("#eager-loaded-frame h2")).getVisibleText(), "Eager-loaded frame: Loaded") + this.assert.equal( + await (await this.querySelector("#eager-loaded-frame h2")).getVisibleText(), + "Eager-loaded frame: Loaded" + ) this.assert.equal(await this.pathname, "/src/tests/fixtures/page_with_eager_frame.html") }