From 3006585cbe98e072b46e57128d1de89382a986ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcholas=20Oliveira?= Date: Tue, 25 Jun 2024 22:16:42 -0300 Subject: [PATCH] test: more tests --- .../next/src/rsc/data/queries/__tests__/queryPost.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/next/src/rsc/data/queries/__tests__/queryPost.ts b/packages/next/src/rsc/data/queries/__tests__/queryPost.ts index a19efd4d4..5e37cded0 100644 --- a/packages/next/src/rsc/data/queries/__tests__/queryPost.ts +++ b/packages/next/src/rsc/data/queries/__tests__/queryPost.ts @@ -13,4 +13,14 @@ describe('queryPosts', () => { expect(data.post.slug).toBe('modi-qui-dignissimos-sed-assumenda-sint-iusto'); }); + + it.skip('issues not found', async () => { + await expect( + queryPost({ + routeParams: { + path: ['2020', '05', '07', 'not-found-post'], + }, + }), + ).rejects.toThrow(); + }); });