mirror of https://github.com/sveltejs/svelte
				
				
				
			failing test for #1621
	
		
	
				
					
				
			
							parent
							
								
									6012c965ac
								
							
						
					
					
						commit
						09db82b7bd
					
				@ -0,0 +1 @@
 | 
				
			||||
<p>Bar</p>
 | 
				
			||||
@ -0,0 +1 @@
 | 
				
			||||
<p>Foo</p>
 | 
				
			||||
@ -0,0 +1,17 @@
 | 
				
			||||
export default {
 | 
				
			||||
	html: `
 | 
				
			||||
		<p>Foo</p>
 | 
				
			||||
	`,
 | 
				
			||||
 | 
				
			||||
	test(assert, component, target) {
 | 
				
			||||
		const { Bar } = component.get();
 | 
				
			||||
 | 
				
			||||
		component.set({
 | 
				
			||||
			x: Bar
 | 
				
			||||
		});
 | 
				
			||||
 | 
				
			||||
		assert.htmlEqual(target.innerHTML, `
 | 
				
			||||
			<p>Bar</p>
 | 
				
			||||
		`);
 | 
				
			||||
	}
 | 
				
			||||
};
 | 
				
			||||
@ -0,0 +1,18 @@
 | 
				
			||||
{#if x}
 | 
				
			||||
	<svelte:component this={x}/>
 | 
				
			||||
{/if}
 | 
				
			||||
 | 
				
			||||
<script>
 | 
				
			||||
	import Foo from './Foo.html';
 | 
				
			||||
	import Bar from './Bar.html';
 | 
				
			||||
 | 
				
			||||
	export default {
 | 
				
			||||
		data() {
 | 
				
			||||
			return {
 | 
				
			||||
				x: Foo,
 | 
				
			||||
				Foo,
 | 
				
			||||
				Bar
 | 
				
			||||
			};
 | 
				
			||||
		}
 | 
				
			||||
	};
 | 
				
			||||
</script>
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue