From 39a7ec35952e3bd46701956a64a244c36c560672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 10 Feb 2026 19:20:38 +0400 Subject: [PATCH] Improve code based on linting --- app/components/settings-pane.gjs | 2 +- tests/acceptance/navigation-test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/settings-pane.gjs b/app/components/settings-pane.gjs index 2a2aa0b..153a4c2 100644 --- a/app/components/settings-pane.gjs +++ b/app/components/settings-pane.gjs @@ -46,7 +46,7 @@ export default class SettingsPane extends Component { diff --git a/tests/acceptance/navigation-test.js b/tests/acceptance/navigation-test.js index fbfa48e..c3769d9 100644 --- a/tests/acceptance/navigation-test.js +++ b/tests/acceptance/navigation-test.js @@ -82,7 +82,7 @@ module('Acceptance | navigation', function (hooks) { // Click the Close (X) button await click('.close-btn'); - await settled(); + assert.strictEqual(currentURL(), '/', 'Returned to index'); assert.false(mapUi.returnToSearch, 'Flag is reset after closing sidebar'); @@ -95,7 +95,7 @@ module('Acceptance | navigation', function (hooks) { assert.ok(currentURL().includes('/place/'), 'Visited place directly'); await click('.back-btn'); - await settled(); + assert.strictEqual(currentURL(), '/', 'Returned to index/map'); assert.true(backStub.notCalled, 'window.history.back() was NOT called');