Fix test
This commit is contained in:
parent
704a75f473
commit
6e497d87b1
1 changed files with 2 additions and 5 deletions
|
@ -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;');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue