Skip to content

Commit

Permalink
[BUGFIX] Affichage de la bannière de nouveautés
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Jan 12, 2022
2 parents f04d36c + e416dee commit b6f8df7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/document-fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function documentFetcher(
prismic.predicates.at('document.type', DOCUMENTS.HOT_NEWS),
{ lang }
)
return documents.results
return documents.results[0]
},
findMainNavigation: async () => {
const documents = await prismic.api.query(
Expand Down
2 changes: 1 addition & 1 deletion tests/services/document-fetcher.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('DocumentFetcher', () => {
'document.type',
DOCUMENTS.HOT_NEWS
)
expect(response).toEqual(expectedValue)
expect(response).toEqual(expectedValue[0])
})

test('#findMainNavigation', async () => {
Expand Down

0 comments on commit b6f8df7

Please sign in to comment.