summaryrefslogtreecommitdiff
path: root/packages/markdown/component/test
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-05-03 23:07:57 +0800
committerGravatar GitHub <noreply@github.com> 2023-05-03 11:07:57 -0400
commit49514e4ce40fedb39bf7decd2c296258efbdafc7 (patch)
tree49bf68d5af0f1d36374040dd820ec5f6cd8e3ef3 /packages/markdown/component/test
parent297a1dae51962bde7a66cc3a4062ff23b64412bc (diff)
downloadastro-49514e4ce40fedb39bf7decd2c296258efbdafc7.tar.gz
astro-49514e4ce40fedb39bf7decd2c296258efbdafc7.tar.zst
astro-49514e4ce40fedb39bf7decd2c296258efbdafc7.zip
Upgrade shiki to v0.14.1 (#6932)
* Upgrade shiki * Update themes * Update languages * Simplify * Fix compat for other remark code * Update theme again * Fix language gen * Add changeset * Fix code * Update test theme colors * Update changeset * Fix test again
Diffstat (limited to 'packages/markdown/component/test')
-rw-r--r--packages/markdown/component/test/astro-markdown-shiki.test.js14
-rw-r--r--packages/markdown/component/test/astro-markdown.test.js2
2 files changed, 8 insertions, 8 deletions
diff --git a/packages/markdown/component/test/astro-markdown-shiki.test.js b/packages/markdown/component/test/astro-markdown-shiki.test.js
index fb4f8f962..580552770 100644
--- a/packages/markdown/component/test/astro-markdown-shiki.test.js
+++ b/packages/markdown/component/test/astro-markdown-shiki.test.js
@@ -41,7 +41,7 @@ describe('Astro Markdown Shiki', () => {
expect($('pre')).to.have.lengthOf(1);
expect($('pre').hasClass('astro-code')).to.equal(true);
- expect($('pre').attr().style).to.equal('background-color: #ffffff; overflow-x: auto;');
+ expect($('pre').attr().style).to.equal('background-color: #fff; overflow-x: auto;');
});
});
@@ -78,12 +78,12 @@ describe('Astro Markdown Shiki', () => {
const segments = $('.line').get(6).children;
expect(segments).to.have.lengthOf(3);
- expect(segments[0].attribs.style).to.be.equal('color: #C9D1D9');
- expect(segments[1].attribs.style).to.be.equal('color: #79C0FF');
+ expect(segments[0].attribs.style).to.be.equal('color: #E1E4E8');
+ expect(segments[1].attribs.style).to.be.equal('color: #79B8FF');
const unknownLang = $('.line').last().html();
expect(unknownLang).to.be.equal(
- '<span style="color: #c9d1d9">This language does not exist</span>'
+ '<span style="color: #e1e4e8">This language does not exist</span>'
);
});
});
@@ -91,7 +91,7 @@ describe('Astro Markdown Shiki', () => {
describe('Wrap', () => {
describe('wrap = true', () => {
const style =
- 'background-color: #0d1117; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;';
+ 'background-color: #24292e; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;';
let fixture;
before(async () => {
@@ -110,7 +110,7 @@ describe('Astro Markdown Shiki', () => {
});
describe('wrap = false', () => {
- const style = 'background-color: #0d1117; overflow-x: auto;';
+ const style = 'background-color: #24292e; overflow-x: auto;';
let fixture;
before(async () => {
@@ -128,7 +128,7 @@ describe('Astro Markdown Shiki', () => {
});
describe('wrap = null', () => {
- const style = 'background-color: #0d1117';
+ const style = 'background-color: #24292e';
let fixture;
before(async () => {
diff --git a/packages/markdown/component/test/astro-markdown.test.js b/packages/markdown/component/test/astro-markdown.test.js
index d2b156334..21c839b34 100644
--- a/packages/markdown/component/test/astro-markdown.test.js
+++ b/packages/markdown/component/test/astro-markdown.test.js
@@ -119,7 +119,7 @@ describe('Astro Markdown', () => {
// test 1: the "pre" tag receives scoped style
const preClassList = $('pre').attr('class').split(/\s+/);
- expect(preClassList.length).to.equal(2);
+ expect(preClassList.length).to.equal(3);
const preAstroClass = preClassList.find(isAstroScopedClass);
expect(Boolean(preAstroClass)).to.equal(true);