summaryrefslogtreecommitdiff
path: root/packages/integrations/image/test/get-image.test.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-10-07 17:08:15 -0400
committerGravatar GitHub <noreply@github.com> 2022-10-07 17:08:15 -0400
commit062335dbf7300ad5370e29ebcf7a05d5a4703a1c (patch)
tree5a3695c596e3dd5bc095472525e583a0c5a79803 /packages/integrations/image/test/get-image.test.js
parentbd756aea18716c1224cb6afe4e4028c1dd28bdda (diff)
downloadastro-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.js17
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);
+ });
+});