diff --git a/packages/client/src/client.spec.js b/packages/client/src/client.spec.js index 25ab7a34..430b0e52 100644 --- a/packages/client/src/client.spec.js +++ b/packages/client/src/client.spec.js @@ -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');