From 84795e7dd004e47c1db26db35c7c9d1b454e1176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcholas=20Andr=C3=A9?= Date: Thu, 16 Nov 2023 00:04:38 -0300 Subject: [PATCH] test: add full path to tests --- packages/core/src/react/hooks/__tests__/useFetchPosts.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/react/hooks/__tests__/useFetchPosts.tsx b/packages/core/src/react/hooks/__tests__/useFetchPosts.tsx index b3396bb4a..ef5178e97 100644 --- a/packages/core/src/react/hooks/__tests__/useFetchPosts.tsx +++ b/packages/core/src/react/hooks/__tests__/useFetchPosts.tsx @@ -247,7 +247,7 @@ describe('useFetchPosts', () => { matchArchivePath: true, }, {}, - '/category/asdasd/uncategorized', + 'https://js1.10up.com/category/asdasd/uncategorized', ), { wrapper, @@ -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"`, ); }); }); @@ -280,7 +280,7 @@ describe('useFetchPosts', () => { per_page: 2, }, {}, - '/category/asdasd/uncategorized', + 'https://js1.10up.com/category/asdasd/uncategorized', ), { wrapper, @@ -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"`, ); }); });