Skip to content

Commit

Permalink
multiple image test
Browse files Browse the repository at this point in the history
  • Loading branch information
peng committed Mar 1, 2024
1 parent 0600b34 commit 99f53f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/astro/test/astro-assets-prefix-mult-cdn.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ describe('Assets Prefix Multiple CDN - Static', () => {
const html = await fixture.readFile('/markdown/index.html');
const $ = cheerio.load(html);
const imgAssets = $('img');
assert.match(imgAssets.attr('src'), defaultAssetsPrefixRegex);
imgAssets.each((i, el) => {
assert.match(el.attribs.src, defaultAssetsPrefixRegex);
});
});

it('content collections image src start with assetsPrefix', async () => {
Expand Down

0 comments on commit 99f53f7

Please sign in to comment.