@@ -28,7 +28,7 @@ const mockedResult = {
2828}
2929
3030const token = 'token'
31- const Session : AdminSession = { token, storeFqdn : 'store' }
31+ const Session : AdminSession = { token, storeFqdn : 'store.myshopify.com ' }
3232
3333describe ( 'admin-graphql-api' , ( ) => {
3434 test ( 'calls the graphql client twice: get api version and then execute the request' , async ( ) => {
@@ -83,7 +83,7 @@ describe('admin-graphql-api', () => {
8383 api : 'Admin' ,
8484 addedHeaders : {
8585 'X-Shopify-Access-Token' : 'shptka_token' ,
86- 'X-Shopify-Shop' : 'store' ,
86+ 'X-Shopify-Shop' : 'store.myshopify.com ' ,
8787 } ,
8888 url : `https://${ defaultThemeKitAccessDomain } /cli/admin/api/2022-01/graphql.json` ,
8989 token : themeAccessToken ,
@@ -131,7 +131,7 @@ describe('admin-rest-api', () => {
131131 await admin . restRequest ( 'GET' , '/themes' , Session )
132132
133133 // Then
134- expect ( spyFetch ) . toHaveBeenLastCalledWith ( 'https://store/admin/api/unstable/themes.json' , {
134+ expect ( spyFetch ) . toHaveBeenLastCalledWith ( 'https://store.myshopify.com /admin/api/unstable/themes.json' , {
135135 headers,
136136 method : 'GET' ,
137137 } )
@@ -164,7 +164,7 @@ describe('admin-rest-api', () => {
164164 headers : {
165165 'Content-Type' : 'application/json' ,
166166 'X-Shopify-Access-Token' : 'shptka_token' ,
167- 'X-Shopify-Shop' : 'store' ,
167+ 'X-Shopify-Shop' : 'store.myshopify.com ' ,
168168 } ,
169169 method : 'GET' ,
170170 } ,
0 commit comments