Skip to content

Commit 8351d0f

Browse files
committed
test: fix tests
1 parent c103f06 commit 8351d0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modules/search/controllers/search.controller.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('SearchController', () => {
1818
})
1919

2020
it('search everything', async () => {
21-
const response = await searchController.controller.request('/search?query=imagine+dragons+bones')
21+
const response = await searchController.controller.request('/search?query=harry+styles+watermelon+sugar')
2222

2323
const { data } = (await response.json()) as {
2424
success: boolean

src/modules/search/helpers/search.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const createSearchPayload = (search: z.infer<typeof SearchAPIResponseMode
99
id: item?.id,
1010
title: item?.title,
1111
image: createImageLinks(item?.image),
12-
album: item?.more_info.album,
12+
album: item?.more_info?.album,
1313
url: item?.perma_url,
1414
type: item?.type,
1515
language: item?.more_info?.language,

0 commit comments

Comments
 (0)