From 0fb320d996fcfa631b95b52ea63a78e569eb6e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 27 Apr 2026 21:20:31 +0100 Subject: [PATCH] Fix test and linter error --- ...carousel-test.gjs => photo-carousel-test.gjs} | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) rename tests/integration/components/{place-photos-carousel-test.gjs => photo-carousel-test.gjs} (86%) diff --git a/tests/integration/components/place-photos-carousel-test.gjs b/tests/integration/components/photo-carousel-test.gjs similarity index 86% rename from tests/integration/components/place-photos-carousel-test.gjs rename to tests/integration/components/photo-carousel-test.gjs index 167f48e..89e2be4 100644 --- a/tests/integration/components/place-photos-carousel-test.gjs +++ b/tests/integration/components/photo-carousel-test.gjs @@ -1,20 +1,20 @@ import { module, test } from 'qunit'; import { setupRenderingTest } from 'marco/tests/helpers'; import { render, click } from '@ember/test-helpers'; -import PlacePhotosCarousel from 'marco/components/place-photos-carousel'; +import PhotoCarousel from 'marco/components/photo-carousel'; -module('Integration | Component | place-photos-carousel', function (hooks) { +module('Integration | Component | photo-carousel', function (hooks) { setupRenderingTest(hooks); test('it renders gracefully with no photos', async function (assert) { this.photos = []; await render( - + ); assert - .dom('.place-photos-carousel-wrapper') + .dom('.photo-carousel') .doesNotExist('it does not render the wrapper when there are no photos'); }); @@ -32,14 +32,12 @@ module('Integration | Component | place-photos-carousel', function (hooks) { await render( ); - assert - .dom('.place-photos-carousel-wrapper') - .exists('it renders the wrapper'); + assert.dom('.photo-carousel').exists('it renders the wrapper'); assert .dom('.carousel-slide:not(.carousel-placeholder)') .exists({ count: 1 }, 'it renders one real photo slide'); @@ -84,7 +82,7 @@ module('Integration | Component | place-photos-carousel', function (hooks) { await render( );