Skip to content

Commit

Permalink
Use constants instead of variables where possible
Browse files Browse the repository at this point in the history
ISSUE: ADPM-34
  • Loading branch information
goran-stamenkovski-logeecom committed Oct 10, 2023
1 parent 56d68b5 commit 3581bed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions notification/test/integration/multitenancy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3581bed

Please sign in to comment.