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