Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwilsonvu committed Jan 10, 2023
1 parent 142d853 commit e5d15ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions docs/reactivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,7 @@ css`

function createCustomStore() {
const [store, updateStore] = createStore({});
return mapArray(
[],
// the second argument to mapArray is not tracked
(item) => store.path.to.field
);
return mapArray([], (item) => store.path.to.field);
}

const [array] = createSignal([]);
Expand Down
3 changes: 1 addition & 2 deletions test/rules/reactivity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,11 +681,10 @@ export const cases = run("reactivity", rule, {
const [store, updateStore] = createStore({});
return mapArray(
[],
// the second argument to mapArray is not tracked
(item) => store.path.to.field
);
}`,
errors: [{ messageId: "untrackedReactive", line: 8 }],
errors: [{ messageId: "untrackedReactive" }],
},
{
code: `
Expand Down

0 comments on commit e5d15ac

Please sign in to comment.