Skip to content

Commit e5d15ac

Browse files
committed
Fix test
1 parent 142d853 commit e5d15ac

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

docs/reactivity.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,7 @@ css`
229229

230230
function createCustomStore() {
231231
const [store, updateStore] = createStore({});
232-
return mapArray(
233-
[],
234-
// the second argument to mapArray is not tracked
235-
(item) => store.path.to.field
236-
);
232+
return mapArray([], (item) => store.path.to.field);
237233
}
238234

239235
const [array] = createSignal([]);

test/rules/reactivity.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,10 @@ export const cases = run("reactivity", rule, {
681681
const [store, updateStore] = createStore({});
682682
return mapArray(
683683
[],
684-
// the second argument to mapArray is not tracked
685684
(item) => store.path.to.field
686685
);
687686
}`,
688-
errors: [{ messageId: "untrackedReactive", line: 8 }],
687+
errors: [{ messageId: "untrackedReactive" }],
689688
},
690689
{
691690
code: `

0 commit comments

Comments
 (0)