From 0793632e6b8766278b86dec41e38ea6851a06da7 Mon Sep 17 00:00:00 2001 From: daiwei Date: Thu, 17 Oct 2024 17:38:15 +0800 Subject: [PATCH] test: update snap --- packages/compiler-ssr/__tests__/ssrElement.spec.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/compiler-ssr/__tests__/ssrElement.spec.ts b/packages/compiler-ssr/__tests__/ssrElement.spec.ts index 10a68c86b14..98626c89968 100644 --- a/packages/compiler-ssr/__tests__/ssrElement.spec.ts +++ b/packages/compiler-ssr/__tests__/ssrElement.spec.ts @@ -315,14 +315,18 @@ describe('ssr: element', () => { test('custom dir when exp is ""', () => { expect(getCompiledString(`
`)).toMatchInlineSnapshot(` "\`
\`" + _ssrRenderAttrs(_temp0 = _ssrGetDirectiveProps(_ctx, _directive_xxx, undefined, "x")) + }>\${ + ("textContent" in _temp0) ? _ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? '' + }\`" `) expect(getCompiledString(`
`)).toMatchInlineSnapshot(` "\`
\`" + _ssrRenderAttrs(_temp0 = _ssrGetDirectiveProps(_ctx, _directive_xxx, undefined)) + }>\${ + ("textContent" in _temp0) ? _ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? '' + }\`" `) })