mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 17:27:54 +00:00
Sync upstream Gemini-CLI v0.8.2 (#838)
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
||||
|
||||
exports[`<MarkdownDisplay /> > correctly parses a mix of markdown elements 1`] = `
|
||||
exports[`<MarkdownDisplay /> > correctly splits lines using \\n regardless of platform EOL 1`] = `
|
||||
"Line 1
|
||||
Line 2
|
||||
Line 3"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders a simple paragraph 1`] = `"Hello, world."`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders nothing for empty text 1`] = `""`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > correctly parses a mix of markdown elements 1`] = `
|
||||
"Main Title
|
||||
|
||||
Here is a paragraph.
|
||||
@@ -14,39 +24,31 @@ Another paragraph.
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > correctly splits lines using \\n regardless of platform EOL 1`] = `
|
||||
"Line 1
|
||||
Line 2
|
||||
Line 3"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > handles a table at the end of the input 1`] = `
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > handles a table at the end of the input 1`] = `
|
||||
"Some text before.
|
||||
| A | B |
|
||||
|---|
|
||||
| 1 | 2 |"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > handles unclosed (pending) code blocks 1`] = `" 1 let y = 2;"`;
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > handles unclosed (pending) code blocks 1`] = `" 1 let y = 2;"`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > hides line numbers in code blocks when showLineNumbers is false 1`] = `" const x = 1;"`;
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > hides line numbers in code blocks when showLineNumbers is false 1`] = `" const x = 1;"`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > inserts a single space between paragraphs 1`] = `
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > inserts a single space between paragraphs 1`] = `
|
||||
"Paragraph 1.
|
||||
|
||||
Paragraph 2."
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders a fenced code block with a language 1`] = `
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > renders a fenced code block with a language 1`] = `
|
||||
" 1 const x = 1;
|
||||
2 console.log(x);"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders a fenced code block without a language 1`] = `" 1 plain text"`;
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > renders a fenced code block without a language 1`] = `" 1 plain text"`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders a simple paragraph 1`] = `"Hello, world."`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders headers with correct levels 1`] = `
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > renders headers with correct levels 1`] = `
|
||||
"Header 1
|
||||
Header 2
|
||||
Header 3
|
||||
@@ -54,7 +56,7 @@ Header 4
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders horizontal rules 1`] = `
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > renders horizontal rules 1`] = `
|
||||
"Hello
|
||||
---
|
||||
World
|
||||
@@ -63,22 +65,20 @@ Test
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders nested unordered lists 1`] = `
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > renders nested unordered lists 1`] = `
|
||||
" * Level 1
|
||||
* Level 2
|
||||
* Level 3
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders nothing for empty text 1`] = `""`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders ordered lists 1`] = `
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > renders ordered lists 1`] = `
|
||||
" 1. First item
|
||||
2. Second item
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders tables correctly 1`] = `
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > renders tables correctly 1`] = `
|
||||
"
|
||||
┌──────────┬──────────┐
|
||||
│ Header 1 │ Header 2 │
|
||||
@@ -89,11 +89,99 @@ exports[`<MarkdownDisplay /> > renders tables correctly 1`] = `
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > renders unordered lists with different markers 1`] = `
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > renders unordered lists with different markers 1`] = `
|
||||
" - item A
|
||||
* item B
|
||||
+ item C
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > shows line numbers in code blocks by default 1`] = `" 1 const x = 1;"`;
|
||||
exports[`<MarkdownDisplay /> > with 'Unix' line endings > shows line numbers in code blocks by default 1`] = `" 1 const x = 1;"`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > correctly parses a mix of markdown elements 1`] = `
|
||||
"Main Title
|
||||
|
||||
Here is a paragraph.
|
||||
|
||||
- List item 1
|
||||
- List item 2
|
||||
|
||||
1 some code
|
||||
|
||||
Another paragraph.
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > handles a table at the end of the input 1`] = `
|
||||
"Some text before.
|
||||
| A | B |
|
||||
|---|
|
||||
| 1 | 2 |"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > handles unclosed (pending) code blocks 1`] = `" 1 let y = 2;"`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > hides line numbers in code blocks when showLineNumbers is false 1`] = `" const x = 1;"`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > inserts a single space between paragraphs 1`] = `
|
||||
"Paragraph 1.
|
||||
|
||||
Paragraph 2."
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > renders a fenced code block with a language 1`] = `
|
||||
" 1 const x = 1;
|
||||
2 console.log(x);"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > renders a fenced code block without a language 1`] = `" 1 plain text"`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > renders headers with correct levels 1`] = `
|
||||
"Header 1
|
||||
Header 2
|
||||
Header 3
|
||||
Header 4
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > renders horizontal rules 1`] = `
|
||||
"Hello
|
||||
---
|
||||
World
|
||||
---
|
||||
Test
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > renders nested unordered lists 1`] = `
|
||||
" * Level 1
|
||||
* Level 2
|
||||
* Level 3
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > renders ordered lists 1`] = `
|
||||
" 1. First item
|
||||
2. Second item
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > renders tables correctly 1`] = `
|
||||
"
|
||||
┌──────────┬──────────┐
|
||||
│ Header 1 │ Header 2 │
|
||||
├──────────┼──────────┤
|
||||
│ Cell 1 │ Cell 2 │
|
||||
│ Cell 3 │ Cell 4 │
|
||||
└──────────┴──────────┘
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > renders unordered lists with different markers 1`] = `
|
||||
" - item A
|
||||
* item B
|
||||
+ item C
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`<MarkdownDisplay /> > with 'Windows' line endings > shows line numbers in code blocks by default 1`] = `" 1 const x = 1;"`;
|
||||
|
||||
Reference in New Issue
Block a user