mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
0247b54270
commit
cfa11eecbf
2 changed files with 12 additions and 4 deletions
|
@ -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 () => {
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in a new issue