Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutiburman committed Nov 19, 2023
1 parent 8fb8f39 commit af38041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/src/classes/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class Client {
console.warn('Region can only be "global" or "eu".');
} else {
this.setDefaultRequest('baseUrl', REGION_HOST_MAP[region]);
console.log('Set region as given.');
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/client/src/client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3097,6 +3097,7 @@ describe('setDataResidency', () => {
const sgClient = require('./client');
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');
});
Expand Down

0 comments on commit af38041

Please sign in to comment.