mirror of https://github.com/sveltejs/svelte
parent
ad4726ce76
commit
b63a54b502
@ -0,0 +1,23 @@
|
||||
export default {
|
||||
data: {
|
||||
x: 11
|
||||
},
|
||||
|
||||
html: `
|
||||
before-if-after
|
||||
`,
|
||||
|
||||
test ( assert, component, target ) {
|
||||
component.set({ x: 4 });
|
||||
assert.htmlEqual( target.innerHTML, `
|
||||
before-elseif-after
|
||||
` );
|
||||
|
||||
component.set({ x: 6 });
|
||||
assert.htmlEqual( target.innerHTML, `
|
||||
before-else-after
|
||||
` );
|
||||
|
||||
component.teardown();
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
before-{{#if x > 10}}if{{elseif x < 5}}elseif{{else}}else{{/if}}-after
|
Loading…
Reference in new issue