From af38041c58d4edd877082c6fc2eb1de9c6607129 Mon Sep 17 00:00:00 2001 From: sburman Date: Sun, 19 Nov 2023 18:11:16 +0530 Subject: [PATCH] test --- packages/client/src/classes/client.js | 1 + packages/client/src/client.spec.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/client/src/classes/client.js b/packages/client/src/classes/client.js index 8d756df3a..ca3298009 100644 --- a/packages/client/src/classes/client.js +++ b/packages/client/src/classes/client.js @@ -104,6 +104,7 @@ class Client { console.warn('Region can only be "global" or "eu".'); } else { this.setDefaultRequest('baseUrl', REGION_HOST_MAP[region]); + console.log('Set region as given.'); } } diff --git a/packages/client/src/client.spec.js b/packages/client/src/client.spec.js index 9bf38fe15..b52bc89f9 100644 --- a/packages/client/src/client.spec.js +++ b/packages/client/src/client.spec.js @@ -3097,6 +3097,7 @@ describe('setDataResidency', () => { const sgClient = require('./client'); sgClient.setDataResidency('eu'); console.log(sgClient); + console.log('Actual:', sgClient.defaultRequest.baseUrl); it('should have host as eu', () => { expect(sgClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com'); });