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(
-) 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( -This is hello world
++ This is hello world +
Code is const a = 1;
+ Code is const a = 1;
+
Code is
+ Code is
+
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```');
});