Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardlyhel committed Sep 27, 2024
1 parent 887452b commit e230e99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/hydrogen-react/src/ShopifyProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('<ShopifyProvider/>', () => {
});

expect(result.current.getStorefrontApiUrl()).toBe(
'https://notashop.myshopify.com/api/2024-07/graphql.json',
'https://notashop.myshopify.com/api/2024-10/graphql.json',
);
});

Expand Down Expand Up @@ -183,7 +183,7 @@ describe('<ShopifyProvider/>', () => {
});

expect(result.current.getStorefrontApiUrl()).toBe(
'https://notashop.myshopify.com/api/2024-07/graphql.json',
'https://notashop.myshopify.com/api/2024-10/graphql.json',
);
});

Expand All @@ -203,7 +203,7 @@ describe('<ShopifyProvider/>', () => {
result.current.getStorefrontApiUrl({
storeDomain: 'https://test.myshopify.com',
}),
).toBe('https://test.myshopify.com/api/2024-07/graphql.json');
).toBe('https://test.myshopify.com/api/2024-10/graphql.json');
});

it(`handles when a '/' is at the end of the url and doesn't add an extra one`, () => {
Expand All @@ -219,7 +219,7 @@ describe('<ShopifyProvider/>', () => {
});

expect(result.current.getStorefrontApiUrl()).toBe(
'https://notashop.myshopify.com/api/2024-07/graphql.json',
'https://notashop.myshopify.com/api/2024-10/graphql.json',
);
});
});
Expand Down

0 comments on commit e230e99

Please sign in to comment.