From 3581bed1fb5df59cc4b51012fc1c7cbd6ce0f764 Mon Sep 17 00:00:00 2001 From: Goran Stamenkovski Date: Tue, 10 Oct 2023 15:21:37 +0200 Subject: [PATCH] Use constants instead of variables where possible ISSUE: ADPM-34 --- notification/test/integration/multitenancy.spec.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/notification/test/integration/multitenancy.spec.js b/notification/test/integration/multitenancy.spec.js index 5d14cae8d..20ae2d293 100644 --- a/notification/test/integration/multitenancy.spec.js +++ b/notification/test/integration/multitenancy.spec.js @@ -9,17 +9,19 @@ import { } from '../test-utils.js' describe('::multitenancy::', () => { - let [commercetoolsProjectKey1, commercetoolsProjectKey2] = + const [commercetoolsProjectKey1, maybeCommercetoolsProjectKey2] = config.getAllCtpProjectKeys() - let [adyenMerchantAccount1, adyenMerchantAccount2] = + const [adyenMerchantAccount1, maybeAdyenMerchantAccount2] = config.getAllAdyenMerchantAccounts() let ctpClient1 let ctpClient2 let notificationURL - commercetoolsProjectKey2 = commercetoolsProjectKey2 || commercetoolsProjectKey1; - adyenMerchantAccount2 = adyenMerchantAccount2 || adyenMerchantAccount1; + const commercetoolsProjectKey2 = + maybeCommercetoolsProjectKey2 || commercetoolsProjectKey1 + const adyenMerchantAccount2 = + maybeAdyenMerchantAccount2 || adyenMerchantAccount1 before(async () => { ctpClient1 = await ctpClientBuilder.get(