Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Jan 8, 2025
1 parent 22c58a2 commit 1d928cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/astro/test/core-image.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ describe('astro:image', () => {

describe('basics', () => {
let $;
let html;
let body;
before(async () => {
let res = await fixture.fetch('/');
html = await res.text();
$ = cheerio.load(html);
body = await res.text();
$ = cheerio.load(body);
});

it('Adds the <img> tag', () => {
Expand All @@ -63,7 +63,7 @@ describe('astro:image', () => {
});

it('does not inject responsive image styles when not enabled', () => {
assert.ok(!html.includes('[data-astro-image]'));
assert.ok(!body.includes('[data-astro-image]'));
});
it('includes loading and decoding attributes', () => {
let $img = $('#local img');
Expand Down

0 comments on commit 1d928cf

Please sign in to comment.