Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev authored and github-actions[bot] committed Apr 19, 2022
1 parent 0247b54 commit cfa11ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
5 changes: 4 additions & 1 deletion packages/astro/test/0-css.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
13 changes: 9 additions & 4 deletions packages/astro/test/astro-doctype.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" "https://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" "https://www.w3.org/TR/html4/loose.dtd">',
'i'
)
);
});

it('User provided doctype is case insensitive', async () => {
Expand Down

0 comments on commit cfa11ee

Please sign in to comment.