Skip to content

Commit

Permalink
✅ Pass test #1864
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Nov 3, 2023
1 parent d8d287a commit 852adbf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion search/IndexSanityContent/localNews/mapper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Local News', () => {
pageTitle: 'title',
ingress: 'ingress',
type: 'localNews',
text: 'Facts\nFactbox text',
text: 'Facts: Factbox text',
publishDateTime: '2021-11-26T07:00:00.000Z',
year: 2021,
localNewsTag: 'Germany',
Expand Down
25 changes: 13 additions & 12 deletions search/IndexSanityContent/news/mapper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,6 @@ describe('News', () => {
})

it('entry looks as expected', () => {
expect(result[0]).toEqual({
slug: '/a/slug',
objectID: 'id-blockKey-childKey',
pageTitle: 'title',
ingress: 'ingress',
type: 'news',
text: 'Some text',
publishDateTime: '2021-11-26T07:00:00.000Z',
year: 2021,
countryTags: ['Germany'],
topicTags: ['Oil'],
} as NewsIndex)
expect(result[1]).toEqual({
slug: '/a/slug',
objectID: 'id-blockKey-childKey2',
Expand Down Expand Up @@ -161,6 +149,19 @@ describe('News', () => {
countryTags: ['Germany'],
topicTags: ['Oil'],
})

expect(result[4]).toEqual({
slug: '/a/slug',
objectID: 'id-factboxkey',
pageTitle: 'title',
ingress: 'ingress',
type: 'news',
text: 'Facts: Factbox text',
publishDateTime: '2021-11-26T07:00:00.000Z',
year: 2021,
countryTags: ['Germany'],
topicTags: ['Oil'],
} as NewsIndex)
})
})

Expand Down

0 comments on commit 852adbf

Please sign in to comment.