From dc8c4eb02b2d0fb64a9a2b44b55fafce4d57a016 Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Wed, 4 Dec 2024 16:20:50 +0000 Subject: [PATCH] Fromat --- packages/astro/test/core-image-layout.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/astro/test/core-image-layout.test.js b/packages/astro/test/core-image-layout.test.js index c8744d196976..bb0e03c481a6 100644 --- a/packages/astro/test/core-image-layout.test.js +++ b/packages/astro/test/core-image-layout.test.js @@ -591,10 +591,9 @@ describe('astro:image:layout', () => { await fixture.build(); }); - describe('basics', () => { let $; - let html + let html; before(async () => { html = await fixture.readFile('/index.html'); $ = cheerio.load(html); @@ -680,7 +679,7 @@ describe('astro:image:layout', () => { // We can't use cheerio because it normalises the DOM, so we have to use a regex const matches = html.match(/class="green"/g); assert.equal(matches.length, 1); - }) + }); it('passes in a parent style', () => { let $img = $('#local-style img'); @@ -697,6 +696,5 @@ describe('astro:image:layout', () => { assert.match(style, /\[data-astro-image\]/); }); }); - }); });