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 23e238c commit df36118
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/client/src/classes/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class Client {
this.setDefaultRequest('baseUrl', REGION_HOST_MAP[region]);
console.log('Set region as given.');
}
return this;
}

createHeaders(data) {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare class Client {
/**
* Sets the data residency as per region provided
*/
setDataResidency(region: string): void;
setDataResidency(region: string): this;

/**
* Create headers for request
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 @@ -3100,6 +3100,7 @@ describe('test client', () => {

describe('setDataResidency', () => {
testClient.setDataResidency('eu');
sgClient.setDataResidency('eu');
console.log('Actual:', testClient.defaultRequest.baseUrl);
it('should have hostname as global', () => {
console.log(testClient);
Expand Down

0 comments on commit df36118

Please sign in to comment.