const ns = '';
export default {
skip_if_ssr: true,
props: {
raw: 'raw html!!!\\o/'
},
html: `before${ns}raw html!!!\\o/${ns}after`,
test({ assert, component, target }) {
component.raw = '';
assert.equal(target.innerHTML, `before${ns}${ns}after`);
component.raw = 'how about unclosed elements?';
assert.equal(target.innerHTML, `before${ns}how about unclosed elements?${ns}after`);
component.$destroy();
assert.equal(target.innerHTML, '');
}
};