Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('renders the scoped slot in SSR', () => {
const output = renderToString(
{
template: `
`
},
{ localVue: Vue, sync: false }
);
expect(output).toBe(`<form data-server-rendered="true"></form>`);
});
test('SSR: render single root slot', () => {
const output = renderToString(
{
template: `
<p></p>
`
},
{ localVue: Vue, sync: false }
);
expect(output).toBe('<span data-server-rendered="true"><p></p></span>');
});
it('should render as human', () => {
const wrapper = renderToString(VueIfBot, {
slots: {
default: slotContent
}
})
testSsr(wrapper)
})
it('should render as bot', () => {
const fn = () => renderToString(TestComponent, { attachToDocument: true })
const message =