Skip to content

Commit

Permalink
test: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Jun 26, 2024
1 parent d96e10c commit 3006585
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/next/src/rsc/data/queries/__tests__/queryPost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});

0 comments on commit 3006585

Please sign in to comment.