Skip to content

Commit

Permalink
fix(@dpc-sdp/ripple-tide-landing-page): update collection test
Browse files Browse the repository at this point in the history
  • Loading branch information
David Featherston committed Jul 13, 2023
1 parent 5433389 commit 2062908
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ describe('contentCollectionMapping', () => {
type: 'any',
field: 'field_topic',
values: [8941, 8940]
},
{
type: 'any',
field: 'field_node_site',
values: ['8888']
}
],
sortBy: [
Expand All @@ -48,6 +53,8 @@ describe('contentCollectionMapping', () => {
}
}

expect(contentCollectionMapping(rawData)).toEqual(result)
expect(contentCollectionMapping(rawData, {}, { site: '8888' })).toEqual(
result
)
})
})

0 comments on commit 2062908

Please sign in to comment.