Skip to content

Commit

Permalink
Remove legacy test
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Sep 19, 2024
1 parent 53f1fa1 commit 030e563
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions content/webapp/utils/digital-guides.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,6 @@ describe('getGuidesRedirections', () => {

expect(result).toBe(undefined);
});

it('redirects legacy exhibition guides', () => {
// Mock userPreferenceGuideType cookie
document.cookie = `WC_userPreferenceGuideType=${userPreferenceGuideType}`;

const result = getGuidesRedirections({
...contextParams,
query: {
id: 'ZHXyDBQAAMCZbr6n',
type: 'audio-without-descriptions',
usingQRCode: 'true',
stopId: 'abc',
},
resolvedUrl: `${baseUrl}/bsl?usingQRCode=true&stopNumber=abc`,
});

expect(result?.redirect?.destination).toBe(
`${baseUrl}/bsl?usingQRCode=true&stopNumber=abc`
);
});
});

describe('getCleanRedirectURL', () => {
Expand Down

0 comments on commit 030e563

Please sign in to comment.