test(ssr): test rendering vnode elements

This commit is contained in:
Evan You
2020-01-29 17:36:06 -05:00
parent 8cdaf28515
commit eaf414f063
5 changed files with 118 additions and 27 deletions

View File

@@ -55,6 +55,17 @@ describe('ssr: renderProps', () => {
})
).toBe(` readonly for="foobar"`)
})
test('preserve name on custom element', () => {
expect(
renderProps(
{
fooBar: 'ok'
},
'my-el'
)
).toBe(` fooBar="ok"`)
})
})
describe('ssr: renderClass', () => {