Skip to content

Commit 66cfccb

Browse files
committed
test: add test cases
1 parent 0aab322 commit 66cfccb

12 files changed

+7954
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export function createCounterDouble() {
2+
let count = $state(0);
3+
const doubled = $derived(count * 2);
4+
5+
function increment() {
6+
count += 1;
7+
}
8+
9+
return {
10+
get doubled() {
11+
return doubled;
12+
},
13+
increment
14+
};
15+
}

0 commit comments

Comments
 (0)