diff --git a/src/__tests__/webParser.test.tsx b/src/__tests__/webParser.test.tsx index 96d922f2..2e2d7697 100644 --- a/src/__tests__/webParser.test.tsx +++ b/src/__tests__/webParser.test.tsx @@ -155,7 +155,7 @@ test('inline code', () => { }); test('codeblock', () => { - expect('```\nHello world!\n```').toBeParsedAsHTML('```
Hello world!
```'); + expect('```\nHello world!\n```').toBeParsedAsHTML('```\nHello world!\n```'); }); describe('quote', () => { @@ -174,19 +174,19 @@ describe('quote', () => { test('multiple blockquotes', () => { expect('> Hello\n> beautiful\n> world').toBeParsedAsHTML( - '> Hello
> beautiful
> world', + '> Hello\n> beautiful\n> world', ); }); test('separate blockquotes', () => { expect('> Lorem ipsum\ndolor\n> sit amet').toBeParsedAsHTML( - '> Lorem ipsum
dolor
> sit amet', + '> Lorem ipsum\ndolor\n> sit amet', ); }); test('nested blockquotes', () => { expect('>>>> Lorem ipsum dolor sit amet').toBeParsedAsHTML( - '>>>> Lorem ipsum dolor sit amet', + '>>>> Lorem ipsum dolor sit amet', ); }); @@ -225,7 +225,7 @@ describe('trailing whitespace', () => { }); test('newline', () => { - expect('> Hello world\n').toBeParsedAsHTML('> Hello world
'); + expect('> Hello world\n').toBeParsedAsHTML('> Hello world\n'); }); }); @@ -243,12 +243,12 @@ describe('trailing whitespace', () => { }); test('newline', () => { - expect('# Hello world\n').toBeParsedAsHTML('# Hello world
'); + expect('# Hello world\n').toBeParsedAsHTML('# Hello world\n'); }); test('multiple quotes', () => { expect('> # Hello\n> # world').toBeParsedAsHTML( - '> # Hello
> # world', + '> # Hello\n> # world', ); }); });