diff --git a/src/common/components/comment/__snapshots__/index.spec.tsx.snap b/src/common/components/comment/__snapshots__/index.spec.tsx.snap index fef12fed5b0..f3bbc4b0904 100644 --- a/src/common/components/comment/__snapshots__/index.spec.tsx.snap +++ b/src/common/components/comment/__snapshots__/index.spec.tsx.snap @@ -200,10 +200,26 @@ exports[`(1) Default render 1`] = ` fill="currentColor" /> +
", "
");
+ const quote = () => insertText(">");
+ const ol = () => insertText("1. item1\n2. item2\n3. item3");
+ const ul = () => insertText("* item1\n* item2\n* item3");
+ const insertLink = (text: string, url: string) => insertText(`[${text}`, `](${url})`);
+ const insertImage = (text: string, url: string) => insertText(`![${text}`, `](${url})`);
+
+ const table = (e: React.MouseEvent", "
");
- };
-
- quote = () => {
- this.insertText(">");
- };
-
- ol = () => {
- this.insertText("1. item1\n2. item2\n3. item3");
- };
-
- ul = () => {
- this.insertText("* item1\n* item2\n* item3");
- };
-
- link = (text: string, url: string) => {
- this.insertText(`[${text}`, `](${url})`);
- };
-
- image = (text: string, url: string) => {
- this.insertText(`![${text}`, `](${url})`);
- };
-
- table = (e: React.MouseEvent