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/dynamic-component-nulled-out/_config.js

21 lines
318 B

export default {
html: `
<p>Foo</p>
`,
nestedTransitions: true,
test(assert, component, target) {
const state = component.get();
component.set({ Foo: null });
assert.htmlEqual(target.innerHTML, ``);
component.set({ Foo: state.Foo });
assert.htmlEqual(target.innerHTML, `
<p>Foo</p>
`);
}
};