From 367802566c0f28a2e98364a2f5afdec36b919e0d Mon Sep 17 00:00:00 2001 From: sburman Date: Sun, 19 Nov 2023 18:16:15 +0530 Subject: [PATCH] Update client.spec.js --- packages/client/src/client.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/client/src/client.spec.js b/packages/client/src/client.spec.js index b52bc89f9..5e506bfe5 100644 --- a/packages/client/src/client.spec.js +++ b/packages/client/src/client.spec.js @@ -3098,7 +3098,8 @@ describe('setDataResidency', () => { 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'); + it('should have hostname as global', () => { + console.log(sgClient); + expect(this.sgClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com'); }); });