From 6e497d87b1fc40574d5ae99d20bf2cee9e7a0467 Mon Sep 17 00:00:00 2001 From: bluwy Date: Fri, 6 Oct 2023 18:00:40 +0800 Subject: [PATCH] Fix test --- packages/astro/test/astro-markdown-shiki.test.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/astro/test/astro-markdown-shiki.test.js b/packages/astro/test/astro-markdown-shiki.test.js index 88927c4e7..f9c1d0dc4 100644 --- a/packages/astro/test/astro-markdown-shiki.test.js +++ b/packages/astro/test/astro-markdown-shiki.test.js @@ -93,11 +93,8 @@ describe('Astro Markdown Shiki', () => { expect(segments[0].attribs.style).to.be.equal('color:#79B8FF'); expect(segments[1].attribs.style).to.be.equal('color:#E1E4E8'); - const unknownLang = $('.line').last().html(); - // TODO: There's a shikiji bug where it's style="" - expect(unknownLang).to.be.equal( - 'This language does not exist' - ); + const unknownLang = $('.astro-code').last(); + expect(unknownLang.attr('style')).to.contain('background-color:#24292e;color:#e1e4e8;'); }); });