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