mirror of https://github.com/sveltejs/svelte
Merge pull request #2634 from sveltejs/gh-2625
fix invalidating stores with UpdateExpressionpull/2670/head
commit
203d0eced4
@ -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