reiji-h 1 год назад
Родитель
Сommit
c2341f247c
1 измененных файлов с 22 добавлено и 21 удалено
  1. 22 21
      packages/remark-growi-directive/test/mdast-util-growi-directive.test.js

+ 22 - 21
packages/remark-growi-directive/test/mdast-util-growi-directive.test.js

@@ -97,27 +97,28 @@ describe('markdown -> mdast', () => {
 
   it('should support content in a label', () => {
     expect(tree).toEqual(
-    {
-      type: 'root',
-      children: [
-        {
-          type: 'paragraph',
-          children: [
-            { type: 'text', value: 'x ' },
-            {
-              type: DirectiveType.Text,
-              name: 'a',
-              attributes: {},
-              children: [
-                { type: 'text', value: 'b ' },
-                { type: 'emphasis', children: [{ type: 'text', value: 'c' }] },
-                { type: 'text', value: '\nd' },
-              ],
-            },
-          ],
-        },
-      ],
-    });
+      {
+        type: 'root',
+        children: [
+          {
+            type: 'paragraph',
+            children: [
+              { type: 'text', value: 'x ' },
+              {
+                type: DirectiveType.Text,
+                name: 'a',
+                attributes: {},
+                children: [
+                  { type: 'text', value: 'b ' },
+                  { type: 'emphasis', children: [{ type: 'text', value: 'c' }] },
+                  { type: 'text', value: '\nd' },
+                ],
+              },
+            ],
+          },
+        ],
+      },
+    );
   });
 
   tree = fromMarkdown('x $a(#b.c.d e=f g="h&i&unknown;j")', {