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/generator/samples/raw-mustaches-preserved/_config.js

22 lines
476 B

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