From 9d6086ab22c5ab2f37bc4def974f41be158b4eea Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Sat, 17 Sep 2022 15:03:43 +0200 Subject: [PATCH] rm console --- test/use-swr-local-mutation.test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/use-swr-local-mutation.test.tsx b/test/use-swr-local-mutation.test.tsx index 83e3286b4..ca07a364e 100644 --- a/test/use-swr-local-mutation.test.tsx +++ b/test/use-swr-local-mutation.test.tsx @@ -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 }, @@ -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') @@ -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:')