This commit is contained in:
bluwy 2023-10-06 18:00:40 +08:00
parent 704a75f473
commit 6e497d87b1

View file

@ -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(
'<span style="color: #e1e4e8">This language does not exist</span>'
);
const unknownLang = $('.astro-code').last();
expect(unknownLang.attr('style')).to.contain('background-color:#24292e;color:#e1e4e8;');
});
});