diff options
author | 2022-04-19 17:53:03 +0000 | |
---|---|---|
committer | 2022-04-19 17:53:03 +0000 | |
commit | cfa11eecbf7cf45dee7292af2586a9147382093b (patch) | |
tree | cb042b71dc735200bd5e872c10ee0857407601f1 | |
parent | 0247b54270e2befab91b9e65029ba929ac26381d (diff) | |
download | astro-cfa11eecbf7cf45dee7292af2586a9147382093b.tar.gz astro-cfa11eecbf7cf45dee7292af2586a9147382093b.tar.zst astro-cfa11eecbf7cf45dee7292af2586a9147382093b.zip |
[ci] format
-rw-r--r-- | packages/astro/test/0-css.test.js | 5 | ||||
-rw-r--r-- | packages/astro/test/astro-doctype.test.js | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/packages/astro/test/0-css.test.js b/packages/astro/test/0-css.test.js index e53df8408..b16e22f39 100644 --- a/packages/astro/test/0-css.test.js +++ b/packages/astro/test/0-css.test.js @@ -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 () => { diff --git a/packages/astro/test/astro-doctype.test.js b/packages/astro/test/astro-doctype.test.js index 8387fd0a7..8ae555f2a 100644 --- a/packages/astro/test/astro-doctype.test.js +++ b/packages/astro/test/astro-doctype.test.js @@ -25,10 +25,15 @@ describe('Doctype', () => { }); it('Preserves user provided doctype', async () => { - 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')); + 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' + ) + ); }); it('User provided doctype is case insensitive', async () => { |