From e7a344657f6c88129f7af8be0dcb6ccf55e74cea Mon Sep 17 00:00:00 2001 From: Jamal Soueidan Date: Wed, 13 Mar 2024 15:09:50 +0100 Subject: [PATCH] Remove Shopify adapter imports and update faker method for user avatar in tests --- src/functions/webhook-order.function.ts | 1 - src/functions/webhook-product.function.ts | 1 - src/library/jest/helpers/user.ts | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/functions/webhook-order.function.ts b/src/functions/webhook-order.function.ts index f48beb08..d362e6a2 100644 --- a/src/functions/webhook-order.function.ts +++ b/src/functions/webhook-order.function.ts @@ -1,4 +1,3 @@ -import "@shopify/shopify-api/adapters/node"; import "module-alias/register"; import { diff --git a/src/functions/webhook-product.function.ts b/src/functions/webhook-product.function.ts index eb49ed53..d8342705 100644 --- a/src/functions/webhook-product.function.ts +++ b/src/functions/webhook-product.function.ts @@ -1,4 +1,3 @@ -import "@shopify/shopify-api/adapters/node"; import "module-alias/register"; import { diff --git a/src/library/jest/helpers/user.ts b/src/library/jest/helpers/user.ts index 9bb85301..b5276151 100644 --- a/src/library/jest/helpers/user.ts +++ b/src/library/jest/helpers/user.ts @@ -21,7 +21,7 @@ export const getUserObject = ( isBusiness: true, images: { profile: { - url: faker.internet.avatar(), + url: faker.image.avatar(), }, }, speaks: [faker.location.countryCode()],