summaryrefslogtreecommitdiff
path: root/packages/integrations/image/test/get-image.test.js
blob: 74fa67feb6f7f1e41e25f25bef8bbfa2046bb073 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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('/_astro');
		expect(assets).to.have.a.lengthOf(1);
	});
});