[ci] format
This commit is contained in:
parent
cf621340b0
commit
e20a3b20b7
1 changed files with 8 additions and 5 deletions
|
@ -7,7 +7,10 @@ describe('build css from the component', async () => {
|
||||||
let fixture;
|
let fixture;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
fixture = await loadFixture({ root: new URL('./fixtures/astro-content-css/', import.meta.url),integrations: [mdx()], });
|
fixture = await loadFixture({
|
||||||
|
root: new URL('./fixtures/astro-content-css/', import.meta.url),
|
||||||
|
integrations: [mdx()],
|
||||||
|
});
|
||||||
await fixture.build();
|
await fixture.build();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -22,10 +25,10 @@ describe('build css from the component', async () => {
|
||||||
expect($('link[href$=".css"]').attr('href')).to.match(/^\/_astro\//);
|
expect($('link[href$=".css"]').attr('href')).to.match(/^\/_astro\//);
|
||||||
expect($('script[src$=".js"]').attr('src')).to.match(/^\/_astro\//);
|
expect($('script[src$=".js"]').attr('src')).to.match(/^\/_astro\//);
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
|
|
||||||
describe('Dev', () => {
|
describe('Dev', () => {
|
||||||
let devServer
|
let devServer;
|
||||||
before(async () => {
|
before(async () => {
|
||||||
devServer = await fixture.startDevServer();
|
devServer = await fixture.startDevServer();
|
||||||
});
|
});
|
||||||
|
@ -42,5 +45,5 @@ describe('build css from the component', async () => {
|
||||||
expect($.html()).to.include('CornflowerBlue');
|
expect($.html()).to.include('CornflowerBlue');
|
||||||
expect($('script[src$=".js"]').attr('src')).to.include('astro');
|
expect($('script[src$=".js"]').attr('src')).to.include('astro');
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
|
|
Loading…
Reference in a new issue