Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutiburman committed Nov 20, 2023
1 parent df36118 commit 9d3a5f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion packages/client/src/classes/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ 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.');
}
return this;
}
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 @@ -3102,6 +3102,7 @@ describe('test client', () => {
testClient.setDataResidency('eu');
sgClient.setDataResidency('eu');
console.log('Actual:', testClient.defaultRequest.baseUrl);
expect(testClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com');
it('should have hostname as global', () => {
console.log(testClient);
expect(testClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com');
Expand Down

0 comments on commit 9d3a5f5

Please sign in to comment.