diff options
author | 2022-10-07 17:08:15 -0400 | |
---|---|---|
committer | 2022-10-07 17:08:15 -0400 | |
commit | 062335dbf7300ad5370e29ebcf7a05d5a4703a1c (patch) | |
tree | 5a3695c596e3dd5bc095472525e583a0c5a79803 /packages/integrations/image/test/get-image.test.js | |
parent | bd756aea18716c1224cb6afe4e4028c1dd28bdda (diff) | |
download | astro-062335dbf7300ad5370e29ebcf7a05d5a4703a1c.tar.gz astro-062335dbf7300ad5370e29ebcf7a05d5a4703a1c.tar.zst astro-062335dbf7300ad5370e29ebcf7a05d5a4703a1c.zip |
Fix remote images in SSG mode (#5021)
Diffstat (limited to 'packages/integrations/image/test/get-image.test.js')
-rw-r--r-- | packages/integrations/image/test/get-image.test.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/integrations/image/test/get-image.test.js b/packages/integrations/image/test/get-image.test.js new file mode 100644 index 000000000..6a4ddc816 --- /dev/null +++ b/packages/integrations/image/test/get-image.test.js @@ -0,0 +1,17 @@ +import { expect } from 'chai'; +import { loadFixture } from './test-utils.js'; + +describe('getImage', function () { + /** @type {import('../../../astro/test/test-utils').Fixture} */ + let fixture; + + before(async () => { + fixture = await loadFixture({ root: './fixtures/get-image-remote/' }); + await fixture.build(); + }); + + it('Remote images works', async () => { + const assets = await fixture.readdir('/assets') + expect(assets).to.have.a.lengthOf(1); + }); +}); |