From 4833f337280dee0105b282c4863b3b674c818cba Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Wed, 13 Nov 2019 18:36:42 +0200 Subject: [PATCH] test: pass missing prop in test (#2876) --- .../src/__tests__/renderer.spec.js | 32 ++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/packages/netlify-cms-widget-markdown/src/__tests__/renderer.spec.js b/packages/netlify-cms-widget-markdown/src/__tests__/renderer.spec.js index 9497f9dc..41d4664f 100644 --- a/packages/netlify-cms-widget-markdown/src/__tests__/renderer.spec.js +++ b/packages/netlify-cms-widget-markdown/src/__tests__/renderer.spec.js @@ -37,7 +37,9 @@ Text with **bold** & _em_ elements ![](https://pbs.twimg.com/profile_images/678903331176214528/TQTdqGwD.jpg) `; expect( - renderer.create().toJSON(), + renderer + .create() + .toJSON(), ).toMatchSnapshot(); }); }); @@ -47,7 +49,9 @@ Text with **bold** & _em_ elements it(`should render Heading ${heading + 1}`, () => { const value = padStart(' Title', heading + 7, '#'); expect( - renderer.create().toJSON(), + renderer + .create() + .toJSON(), ).toMatchSnapshot(); }); } @@ -67,7 +71,9 @@ Text with **bold** & _em_ elements 1. ol item 3 `; expect( - renderer.create().toJSON(), + renderer + .create() + .toJSON(), ).toMatchSnapshot(); }); }); @@ -82,7 +88,9 @@ I get 10 times more traffic from [Google] [1] than from [Yahoo] [2] or [MSN] [3] [3]: http://search.msn.com/ "MSN Search" `; expect( - renderer.create().toJSON(), + renderer + .create() + .toJSON(), ).toMatchSnapshot(); }); }); @@ -91,14 +99,18 @@ I get 10 times more traffic from [Google] [1] than from [Yahoo] [2] or [MSN] [3] it('should render code', () => { const value = 'Use the `printf()` function.'; expect( - renderer.create().toJSON(), + renderer + .create() + .toJSON(), ).toMatchSnapshot(); }); it('should render code 2', () => { const value = '``There is a literal backtick (`) here.``'; expect( - renderer.create().toJSON(), + renderer + .create() + .toJSON(), ).toMatchSnapshot(); }); }); @@ -121,7 +133,9 @@ I get 10 times more traffic from [Google] [1] than from [Yahoo] [2] or [MSN] [3]

Test

`; expect( - renderer.create().toJSON(), + renderer + .create() + .toJSON(), ).toMatchSnapshot(); }); }); @@ -131,7 +145,9 @@ I get 10 times more traffic from [Google] [1] than from [Yahoo] [2] or [MSN] [3] it('should render HTML', () => { const value = '

Paragraph with inline element

'; expect( - renderer.create().toJSON(), + renderer + .create() + .toJSON(), ).toMatchSnapshot(); }); });