Skip to content

Commit

Permalink
test: update snap
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Oct 17, 2024
1 parent 5a4a4ff commit 0793632
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/compiler-ssr/__tests__/ssrElement.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,18 @@ describe('ssr: element', () => {
test('custom dir when exp is ""', () => {
expect(getCompiledString(`<div v-xxx:x="" />`)).toMatchInlineSnapshot(`
"\`<div\${
_ssrRenderAttrs(_ssrGetDirectiveProps(_ctx, _directive_xxx, undefined, "x"))
}></div>\`"
_ssrRenderAttrs(_temp0 = _ssrGetDirectiveProps(_ctx, _directive_xxx, undefined, "x"))
}>\${
("textContent" in _temp0) ? _ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ''
}</div>\`"
`)

expect(getCompiledString(`<div v-xxx="" />`)).toMatchInlineSnapshot(`
"\`<div\${
_ssrRenderAttrs(_ssrGetDirectiveProps(_ctx, _directive_xxx, undefined))
}></div>\`"
_ssrRenderAttrs(_temp0 = _ssrGetDirectiveProps(_ctx, _directive_xxx, undefined))
}>\${
("textContent" in _temp0) ? _ssrInterpolate(_temp0.textContent) : _temp0.innerHTML ?? ''
}</div>\`"
`)
})

Expand Down

0 comments on commit 0793632

Please sign in to comment.