Skip to content

Commit

Permalink
test: add full path to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Nov 16, 2023
1 parent d379e28 commit 84795e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/react/hooks/__tests__/useFetchPosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ describe('useFetchPosts', () => {
matchArchivePath: true,
},
{},
'/category/asdasd/uncategorized',
'https://js1.10up.com/category/asdasd/uncategorized',
),
{
wrapper,
Expand All @@ -256,7 +256,7 @@ describe('useFetchPosts', () => {

await waitFor(() => {
expect(result.current.error?.toString()).toBe(
`NotFoundError: Posts were found but did not match current path: "/category/asdasd/uncategorized"`,
`NotFoundError: Posts were found but did not match current path: "https://js1.10up.com/category/asdasd/uncategorized"`,
);
});
});
Expand All @@ -280,7 +280,7 @@ describe('useFetchPosts', () => {
per_page: 2,
},
{},
'/category/asdasd/uncategorized',
'https://js1.10up.com/category/asdasd/uncategorized',
),
{
wrapper,
Expand All @@ -289,7 +289,7 @@ describe('useFetchPosts', () => {

await waitFor(() => {
expect(result.current.error?.toString()).toBe(
`NotFoundError: Posts were found but did not match current path: "/category/asdasd/uncategorized"`,
`NotFoundError: Posts were found but did not match current path: "https://js1.10up.com/category/asdasd/uncategorized"`,
);
});
});
Expand Down

0 comments on commit 84795e7

Please sign in to comment.