[ci] format

This commit is contained in:
bholmesdev 2022-04-19 17:53:03 +00:00 committed by github-actions[bot]
parent 0247b54270
commit cfa11eecbf
2 changed files with 12 additions and 4 deletions

View file

@ -292,7 +292,10 @@ describe('CSS', function () {
it('resolves Astro styles', async () => {
const astroPageCss = $('link[rel=stylesheet][href^=/src/pages/index.astro?astro&type=style]');
expect(astroPageCss.length).to.equal(4, 'The index.astro page should generate 4 stylesheets, 1 for each <style> tag on the page.')
expect(astroPageCss.length).to.equal(
4,
'The index.astro page should generate 4 stylesheets, 1 for each <style> tag on the page.'
);
});
it('resolves Styles from React', async () => {

View file

@ -25,10 +25,15 @@ describe('Doctype', () => {
});
it('Preserves user provided doctype', async () => {
const html = await fixture.readFile('/preserve/index.html');
const html = await fixture.readFile('/preserve/index.html');
// test that Doctype included was preserved
expect(html).to.match(new RegExp('^<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">', 'i'));
// test that Doctype included was preserved
expect(html).to.match(
new RegExp(
'^<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
'i'
)
);
});
it('User provided doctype is case insensitive', async () => {