Skip to content

Commit

Permalink
Fix provideEndpointsTest
Browse files Browse the repository at this point in the history
Fixes provideEndpointsTest so it only expects cached endpoints
for autocompletes.

J=WAT-4442
TEST=auto

Test passes
  • Loading branch information
mkouzel-yext committed Nov 12, 2024
1 parent 7ad3595 commit 1161965
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/provideEndpointsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it('Sandbox, US, Multi produces expected endpoint', () => {
cloudRegion: CloudRegion.US,
cloudChoice: CloudChoice.GLOBAL_MULTI
}).getEndpoints();
expect(endPoints).toHaveProperty('universalSearch', 'https://sbx-cdn-cached.us.yextapis.com/v2/accounts/me/search/query');
expect(endPoints).toHaveProperty('universalSearch', 'https://sbx-cdn.us.yextapis.com/v2/accounts/me/search/query');
});

it('Prod, US, Multi produces expected endpoint', () => {
Expand All @@ -16,7 +16,7 @@ it('Prod, US, Multi produces expected endpoint', () => {
cloudRegion: CloudRegion.US,
cloudChoice: CloudChoice.GLOBAL_MULTI
}).getEndpoints();
expect(endPoints).toHaveProperty('verticalSearch', 'https://prod-cdn-cached.us.yextapis.com/v2/accounts/me/search/vertical/query');
expect(endPoints).toHaveProperty('verticalSearch', 'https://prod-cdn.us.yextapis.com/v2/accounts/me/search/vertical/query');
});

it('Prod, US, GCP produces expected endpoint', () => {
Expand All @@ -43,5 +43,5 @@ it('Prod, EU, GCP produces expected endpoint', () => {
cloudRegion: CloudRegion.EU,
cloudChoice: CloudChoice.GLOBAL_GCP
}).getEndpoints();
expect(endPoints).toHaveProperty('filterSearch', 'https://prod-cdn-cached-gcp.eu.yextapis.com/v2/accounts/me/search/filtersearch');
expect(endPoints).toHaveProperty('filterSearch', 'https://prod-cdn-gcp.eu.yextapis.com/v2/accounts/me/search/filtersearch');
});

0 comments on commit 1161965

Please sign in to comment.