Skip to content

Commit

Permalink
Update client.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutiburman committed Nov 19, 2023
1 parent 3678025 commit 100ea93
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/client/src/client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit 100ea93

Please sign in to comment.