diff --git a/__tests__/renderer-spec.tsx b/__tests__/renderer-spec.tsx index 673ab33..abcc16d 100644 --- a/__tests__/renderer-spec.tsx +++ b/__tests__/renderer-spec.tsx @@ -170,7 +170,9 @@ test('should render blockquote with mixed text', () => { expect( (render(
-

This is hello world

+

+ This is hello world +

) as string).trim() ).toBe('> This is _hello_ **world**'); @@ -179,7 +181,9 @@ test('should render blockquote with mixed text', () => { test('should render inline code tag with text', () => { expect( (render( -

Code is const a = 1;

+

+ Code is const a = 1; +

) as string).trim() ).toBe('Code is `const a = 1;`'); }); @@ -187,7 +191,9 @@ test('should render inline code tag with text', () => { test('should render inline code tag without text', () => { expect( (render( -

Code is

+

+ Code is +

) as string).trim() ).toBe('Code is ``'); }); @@ -195,7 +201,9 @@ test('should render inline code tag without text', () => { test('should render pre.code tag with text', () => { expect( (render( -
const a = 1;
+
+        const a = 1;
+      
) as string).trim() ).toBe('```js\nconst a = 1;\n```'); }); @@ -203,7 +211,9 @@ test('should render pre.code tag with text', () => { test('should render pre.code tag without text', () => { expect( (render( -
+
+        
+      
) as string).trim() ).toBe('```js\n\n```'); });