diff options
Diffstat (limited to 'packages/integrations/image/test/assets-prefix.test.js')
-rw-r--r-- | packages/integrations/image/test/assets-prefix.test.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/packages/integrations/image/test/assets-prefix.test.js b/packages/integrations/image/test/assets-prefix.test.js deleted file mode 100644 index 099acfeb3..000000000 --- a/packages/integrations/image/test/assets-prefix.test.js +++ /dev/null @@ -1,22 +0,0 @@ -import { expect } from 'chai'; -import * as cheerio from 'cheerio'; -import { loadFixture } from './test-utils.js'; - -const assetsPrefixRegex = /^http:\/\/localhost:4321\/_astro\/.*/; - -describe('Assets Prefix', function () { - /** @type {import('../../../astro/test/test-utils').Fixture} */ - let fixture; - - before(async () => { - fixture = await loadFixture({ root: './fixtures/assets-prefix/' }); - await fixture.build(); - }); - - it('images src has assets prefix', async () => { - const html = await fixture.readFile('/index.html'); - const $ = cheerio.load(html); - const img = $('#social-jpg'); - expect(img.attr('src')).to.match(assetsPrefixRegex); - }); -}); |