astro/packages/astro/test/astro-public.test.js
2021-12-22 16:11:05 -05:00

18 lines
590 B
JavaScript

import { expect } from 'chai';
import { loadFixture } from './test-utils.js';
describe('Public', () => {
let fixture;
before(async () => {
fixture = await loadFixture({ projectRoot: './fixtures/astro-public/' });
await fixture.build();
});
it('css and js files do not get bundled', async () => {
let indexHtml = await fixture.readFile('/index.html');
expect(indexHtml).to.include('<script src="/example.js"></script>');
expect(indexHtml).to.include('<link href="/example.css" ref="stylesheet">');
expect(indexHtml).to.include('<img src="/images/twitter.png">');
});
});