From 0f376a7c52d3a22ff32b33e0afc34dd306ed70c4 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Fri, 18 Mar 2022 21:30:38 +0000 Subject: [PATCH] [ci] format --- examples/with-markdown/src/styles/global.css | 1 - packages/astro/test/astro-markdown.test.js | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/with-markdown/src/styles/global.css b/examples/with-markdown/src/styles/global.css index ac9323747..7ea16821e 100644 --- a/examples/with-markdown/src/styles/global.css +++ b/examples/with-markdown/src/styles/global.css @@ -52,7 +52,6 @@ pre.astro-code > code { all: unset; } - /********************************************************* * Line highlighting */ diff --git a/packages/astro/test/astro-markdown.test.js b/packages/astro/test/astro-markdown.test.js index 44315a510..d079646d5 100644 --- a/packages/astro/test/astro-markdown.test.js +++ b/packages/astro/test/astro-markdown.test.js @@ -62,14 +62,14 @@ describe('Astro Markdown', () => { // test 2: inline styles are still applied expect($('pre').is('[style]')).to.equal(true); - + // test 3: There are styled child spans in code blocks expect($('pre code span').length).to.be.greaterThan(0); expect($('pre code span').is('[style]')).to.equal(true); }); function isAstroScopedClass(cls) { - return /^astro-.*/.test(cls) + return /^astro-.*/.test(cls); } it('Scoped styles should be applied to syntax highlighted lines', async () => { @@ -81,7 +81,7 @@ describe('Astro Markdown', () => { expect(preClassList.length).to.equal(2); const preAstroClass = preClassList.find(isAstroScopedClass); expect(Boolean(preAstroClass)).to.equal(true); - + // test 2: each "span" line receives scoped style const spanClassList = $('pre code span').attr('class').split(/\s+/); expect(spanClassList.length).to.equal(2);