Skip to content

Commit

Permalink
rm console
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Sep 17, 2022
1 parent 5268d85 commit 9d6086a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/use-swr-local-mutation.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,6 @@ describe('useSWR - local mutation', () => {
onClick={async () => {
const res = await mutate(
(_key, { serializedKey }) => {
console.log('serializedKey', _key, serializedKey)
collectedKeys.push([_key, serializedKey])
return true
},
Expand All @@ -1609,7 +1608,6 @@ describe('useSWR - local mutation', () => {
fireEvent.click(screen.getByTestId('mutator-filter-all'))
await nextTick()


await screen.findByText('first:value-first')
await screen.findByText('second:value-second')

Expand All @@ -1620,7 +1618,7 @@ describe('useSWR - local mutation', () => {
expect(collectedKeys).toEqual([
[key + 'first', key + 'first'],
[key + 'second', key + 'second'],
[[key + 'third'], serialize([key + 'third'])[0]],
[[key + 'third'], serialize([key + 'third'])[0]]
])

await screen.findByText('first:')
Expand Down

0 comments on commit 9d6086a

Please sign in to comment.