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 23, 2023
1 parent 8c0931c commit a6671be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client/src/client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3095,9 +3095,9 @@ describe('test_whitelabel_links__link_id__subuser_post', () => {

describe('setDataResidency', () => {
let consoleWarnSpy;

let testClient = require('./client');
beforeEach(() => {
const testClient = require('./client');
testClient = new Client();
consoleWarnSpy = sinon.spy(console, 'warn');
});
afterEach(() => {
Expand All @@ -3111,7 +3111,7 @@ describe('setDataResidency', () => {
it('should send to host Global/default', () => {
testClient.setDataResidency('global');
expect(testClient.defaultRequest.baseUrl).to.equal('https://api.sendgrid.com/');
expect(testClient.region).to.equal('global');
expect(testClient.sendgrid_region).to.equal('global');
});
it('should override the existing set hostname, if data residency setter is called after', () => {
testClient.setApiKey('SG.1234567890');
Expand Down

0 comments on commit a6671be

Please sign in to comment.