@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
10 lines (9 loc) • 316 B
text/typescript
/**
* Returns a fake shop URL for a store name to use when faking authorization in testing.
*
* @param store The store name for which to create a fake shop URL.
* @returns {string} A fake shop URL for the store name.
*/
export function getShopValue(store: string): string {
return `${store}.myshopify.com`;
}