From f49d80d637e7ba6598139877b1081d7983d41e6c Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 13 Oct 2022 21:42:13 +0000 Subject: [PATCH] [ci] format --- packages/astro/test/units/render/jsx.test.js | 28 +++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/astro/test/units/render/jsx.test.js b/packages/astro/test/units/render/jsx.test.js index 739bc794e..5cafd582c 100644 --- a/packages/astro/test/units/render/jsx.test.js +++ b/packages/astro/test/units/render/jsx.test.js @@ -54,7 +54,7 @@ describe('core/render', () => { const Wrapper = createComponent((result, _props, slots = {}) => { return render`
${renderSlot(result, slots['my-slot'])}
`; }); - + const Page = createAstroJSXComponent(() => { return jsx('main', { children: [ @@ -64,29 +64,31 @@ describe('core/render', () => { jsx('p', { slot: 'my-slot', className: 'n', - children: 'works' - }) - ] + children: 'works', + }), + ], }), jsx(Wrapper, { // Children as a VNode children: jsx('p', { slot: 'my-slot', className: 'p', - children: 'works' - }) - }) - ] - }) + children: 'works', + }), + }), + ], + }); }); - const ctx = createRenderContext({ request: new Request('http://example.com/' )}); + const ctx = createRenderContext({ request: new Request('http://example.com/') }); const response = await renderPage(createAstroModule(Page), ctx, env); - + expect(response.status).to.equal(200); - + const html = await response.text(); - expect(html).to.include('

works

works

'); + expect(html).to.include( + '

works

works

' + ); }); }); });