Skip to content

Commit 00f710d

Browse files
committed
chore: add test
1 parent 10dfa18 commit 00f710d

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script>
2+
let count = 0;
3+
let run = true;
4+
$: console.log(count);
5+
$: if (count > 10 && run) {
6+
alert('too high')
7+
}
8+
$: {
9+
console.log('foo');
10+
if (x) break $;
11+
console.log('bar');
12+
}
13+
$: $count = 1;
14+
</script>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<script>
2+
import { run as run_1 } from 'svelte/legacy';
3+
4+
let count = 0;
5+
let run = true;
6+
run_1(() => {
7+
console.log(count);
8+
});
9+
run_1(() => {
10+
if (count > 10 && run) {
11+
alert('too high')
12+
}
13+
});
14+
run_1(() => {
15+
console.log('foo');
16+
if (x) return;
17+
console.log('bar');
18+
});
19+
run_1(() => {
20+
$count = 1;
21+
});
22+
</script>

0 commit comments

Comments
 (0)