summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/test/0-css.test.js5
-rw-r--r--packages/astro/test/astro-doctype.test.js13
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 () => {