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-preserved/_config.js

18 lines
382 B

export default {
skip_if_ssr: true,
props: {
raw: '<p>does not change</p>'
},
html: '<div><p>does not change</p></div>',
test({ assert, component, target }) {
const p = target.querySelector('p');
component.raw = '<p>does not change</p>';
assert.equal(target.innerHTML, '<div><p>does not change</p></div>');
assert.strictEqual(target.querySelector('p'), p);
}
};