You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/raw-mustaches/_config.js

19 lines
490 B

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