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

23 lines
401 B

export default {
// solo: 1,
html: `
<template>
<div>foo</div>
</template>
`,
test({ assert, component, target }) {
const template = target.querySelector('template');
assert.htmlEqual(template.innerHTML, `
<div>foo</div>
`);
const content = template.content.cloneNode(true);
const div = content.children[0];
assert.htmlEqual(div.outerHTML, `
<div>foo</div>
`);
}
};