0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations/image/test/get-image.test.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
461 B
JavaScript
Raw Normal View History

2022-10-07 16:08:15 -05:00
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');
2022-10-07 16:08:15 -05:00
expect(assets).to.have.a.lengthOf(1);
});
});