From 100ea939d4cb242aa872d8e9682d5a7e4c33d82b Mon Sep 17 00:00:00 2001 From: sburman Date: Sun, 19 Nov 2023 18:24:06 +0530 Subject: [PATCH] Update client.spec.js --- packages/client/src/client.spec.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/client/src/client.spec.js b/packages/client/src/client.spec.js index 5e506bfe5..f89c9487c 100644 --- a/packages/client/src/client.spec.js +++ b/packages/client/src/client.spec.js @@ -3094,12 +3094,13 @@ describe('test_whitelabel_links__link_id__subuser_post', () => { }); describe('setDataResidency', () => { - const sgClient = require('./client'); - sgClient.setDataResidency('eu'); - console.log(sgClient); - console.log('Actual:', sgClient.defaultRequest.baseUrl); + const testClient = require('./client'); + testClient.setDataResidency('eu'); + console.log(testClient); + console.log('Actual:', testClient.defaultRequest.baseUrl); + it('should have hostname as global', () => { - console.log(sgClient); - expect(this.sgClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com'); + console.log(testClient); + expect(testClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com'); }); });