diff options
author | 2022-03-18 21:30:38 +0000 | |
---|---|---|
committer | 2022-03-18 21:30:38 +0000 | |
commit | 0f376a7c52d3a22ff32b33e0afc34dd306ed70c4 (patch) | |
tree | 95888b85328016eccf217cdb1cbc5076bf96848d /packages | |
parent | 0a3d3e51a66af80fa949ba0f5e2104439d2be634 (diff) | |
download | astro-0f376a7c52d3a22ff32b33e0afc34dd306ed70c4.tar.gz astro-0f376a7c52d3a22ff32b33e0afc34dd306ed70c4.tar.zst astro-0f376a7c52d3a22ff32b33e0afc34dd306ed70c4.zip |
[ci] format
Diffstat (limited to 'packages')
-rw-r--r-- | packages/astro/test/astro-markdown.test.js | 6 |
1 files changed, 3 insertions, 3 deletions
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); |