2022-10-07 21:08:15 +00: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 () => {
|
2023-01-09 16:01:33 +00:00
|
|
|
const assets = await fixture.readdir('/_astro');
|
2022-10-07 21:08:15 +00:00
|
|
|
expect(assets).to.have.a.lengthOf(1);
|
|
|
|
});
|
|
|
|
});
|