mirror of https://github.com/sveltejs/svelte
				
				
				
			fix invalidating stores with UpdateExpression (#2625)
	
		
	
				
					
				
			
							parent
							
								
									d419274afd
								
							
						
					
					
						commit
						10f6da3109
					
				@ -0,0 +1,8 @@
 | 
				
			||||
export default {
 | 
				
			||||
	html: `0`,
 | 
				
			||||
 | 
				
			||||
	async test({ assert, component, target }) {
 | 
				
			||||
		await component.increment();
 | 
				
			||||
		assert.htmlEqual(target.innerHTML, `1`);
 | 
				
			||||
	}
 | 
				
			||||
};
 | 
				
			||||
@ -0,0 +1,11 @@
 | 
				
			||||
<script>
 | 
				
			||||
	import { writable } from '../../../../store.js';
 | 
				
			||||
 | 
				
			||||
	const foo = writable(0);
 | 
				
			||||
 | 
				
			||||
	export function increment() {
 | 
				
			||||
		$foo++;
 | 
				
			||||
	}
 | 
				
			||||
</script>
 | 
				
			||||
 | 
				
			||||
{$foo}
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue