Skip to content

Commit

Permalink
Add additional test scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
karinathomasbbc committed Jan 31, 2025
1 parent 0c6765f commit 167a7fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/routes/utils/constructPageFetchUrl/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe('constructPageFetchUrl', () => {
${LIVE_PAGE} | ${null} | ${null} | ${'local'} | ${'c0000000000t'} | ${'http://localhost/api/local/ukrainian/live/c0000000000t'}
${LIVE_PAGE} | ${null} | ${null} | ${'local'} | ${'c0000000000t.lite'} | ${'http://localhost/api/local/ukrainian/live/c0000000000t'}
${LIVE_PAGE} | ${'serbian'} | ${'cyr'} | ${'local'} | ${'c0000000000t'} | ${'http://localhost/api/local/serbian/live/c0000000000t/cyr'}
${LIVE_PAGE} | ${'serbian'} | ${'cyr'} | ${'local'} | ${'c0000000000t'} | ${'http://localhost/api/local/serbian/live/c0000000000t/cyr'}
${LIVE_PAGE} | ${'serbian'} | ${'cyr'} | ${'local'} | ${'c0000000000t.lite'} | ${'http://localhost/api/local/serbian/live/c0000000000t/cyr'}
${LIVE_PAGE} | ${null} | ${null} | ${'test'} | ${'c0000000000t'} | ${'https://mock-bff-path/?id=c0000000000t&service=ukrainian&pageType=live&serviceEnv=test'}
${LIVE_PAGE} | ${null} | ${null} | ${'test'} | ${'c0000000000t.lite'} | ${'https://mock-bff-path/?id=c0000000000t&service=ukrainian&pageType=live&serviceEnv=test'}
${LIVE_PAGE} | ${'zhongwen'} | ${'trad'} | ${'test'} | ${'c0000000000t'} | ${'https://mock-bff-path/?id=c0000000000t&service=zhongwen&pageType=live&variant=trad&serviceEnv=test'}
Expand All @@ -114,6 +114,7 @@ describe('constructPageFetchUrl', () => {
${LIVE_PAGE} | ${'arabic'} | ${null} | ${'test'} | ${'67574192'} | ${'https://mock-bff-path/?id=%2Farabic%2Flive%2F67574192&service=arabic&pageType=live&serviceEnv=test'}
${LIVE_PAGE} | ${'arabic'} | ${null} | ${'test'} | ${'67574192.lite'} | ${'https://mock-bff-path/?id=%2Farabic%2Flive%2F67574192&service=arabic&pageType=live&serviceEnv=test'}
${LIVE_PAGE} | ${'serbian'} | ${'lat'} | ${'test'} | ${'media-23179005'} | ${'https://mock-bff-path/?id=%2Fserbian%2Flat%2Flive%2Fmedia-23179005&service=serbian&pageType=live&variant=lat&serviceEnv=test'}
${LIVE_PAGE} | ${'serbian'} | ${'lat'} | ${'test'} | ${'media-23179005.lite'} | ${'https://mock-bff-path/?id=%2Fserbian%2Flat%2Flive%2Fmedia-23179005&service=serbian&pageType=live&variant=lat&serviceEnv=test'}
${LIVE_PAGE} | ${'arabic'} | ${null} | ${'live'} | ${'67574192'} | ${'https://mock-bff-path/?id=%2Farabic%2Flive%2F67574192&service=arabic&pageType=live&serviceEnv=live'}
${LIVE_PAGE} | ${'arabic'} | ${null} | ${'live'} | ${'67574192.lite'} | ${'https://mock-bff-path/?id=%2Farabic%2Flive%2F67574192&service=arabic&pageType=live&serviceEnv=live'}
${LIVE_PAGE} | ${'zhongwen'} | ${'trad'} | ${'live'} | ${'uk-69168527'} | ${'https://mock-bff-path/?id=%2Fzhongwen%2Ftrad%2Flive%2Fuk-69168527&service=zhongwen&pageType=live&variant=trad&serviceEnv=live'}
Expand Down

0 comments on commit 167a7fd

Please sign in to comment.