update tests

pull/2228/head
Conduitry 6 years ago
parent d91cf4b2ef
commit a26b276c5e

@ -17,11 +17,11 @@ let a = 1;
let b = 2;
function instance($$self, $$props, $$invalidate) {
let max;
$$self.$$.update = ($$dirty = { Math: 1, a: 1, b: 1 }) => {
$$self.$$.update = ($$dirty = { a: 1, b: 1 }) => {
if ($$dirty.a || $$dirty.b) {
max = Math.max(a, b); $$invalidate('max', max);
}

@ -0,0 +1,7 @@
[{
"message": "Invalid reactive declaration — must depend on local state",
"code": "invalid-reactive-declaration",
"start": { "line": 2, "column": 1, "character": 10 },
"end": { "line": 2, "column": 23, "character": 32 },
"pos": 10
}]

@ -0,0 +1,3 @@
<script>
$: console.log('foo');
</script>
Loading…
Cancel
Save