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 20, 2023
1 parent 46b0d40 commit 270fda8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/client/src/client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3097,6 +3097,15 @@ describe('test_whitelabel_links__link_id__subuser_post', () => {
describe('setDataResidency', () => {
const testClient = require('./client');
let consoleWarnSpy;

beforeEach(() => {
consoleWarnSpy = sinon.spy(console, 'warn');
});

afterEach(() => {
console.warn.restore();
});

it('should send to host EU', () => {
testClient.setDataResidency('eu');
expect(testClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com');
Expand Down

0 comments on commit 270fda8

Please sign in to comment.