mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
f8f4d49aba
* WIP: emit assets to _astro * chore: better _astro handling * refactor: emit server assets to `chunks/` * chore: update /asset tests * test: add explicit build output tests * fix: update image to emit to configured asset path * chore: update changeset * chore: update image tests * chore: update image tests * test: update css test * test: update bundling test * test: update tests * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * chore: add clarifying comment Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
17 lines
461 B
JavaScript
17 lines
461 B
JavaScript
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);
|
|
});
|
|
});
|