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

20 lines
419 B

export default {
'skip-ssr': true,
data: {
raw: '<p>does not change</p>'
},
html: `<div><p>does not change</p></div>`,
test ( assert, component, target ) {
const p = target.querySelector( 'p' );
component.set({ raw: '<p>does not change</p>' });
assert.equal( target.innerHTML, `<div><p>does not change</p></div>` );
assert.strictEqual( target.querySelector( 'p' ), p );
component.destroy();
}
};