Skip to content

Commit f2b4bdf

Browse files
committed
tests for O-nodes
1 parent 8c357df commit f2b4bdf

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script lang="ts">
2+
let count = 0;
3+
4+
function handleClick(event: MouseEvent) {
5+
count += 1;
6+
}
7+
</script>
8+
9+
<button on:click|preventDefault={handleClick}>
10+
count: {count}
11+
</button>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script lang="ts">
2+
let count = 0;
3+
4+
function handleClick(event: MouseEvent) {
5+
count += 1;
6+
}
7+
</script>
8+
9+
<button on:click|preventDefault={handleClick}>
10+
count: {count}
11+
</button>

0 commit comments

Comments
 (0)