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'); }); });