Skip to content

Commit

Permalink
Fromat
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Dec 4, 2024
1 parent c73c3fb commit dc8c4eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/astro/test/core-image-layout.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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');
Expand All @@ -697,6 +696,5 @@ describe('astro:image:layout', () => {
assert.match(style, /\[data-astro-image\]/);
});
});

});
});

0 comments on commit dc8c4eb

Please sign in to comment.