diff --git a/packages/client/src/client.spec.js b/packages/client/src/client.spec.js index 51d4233a..e02876eb 100644 --- a/packages/client/src/client.spec.js +++ b/packages/client/src/client.spec.js @@ -3102,7 +3102,11 @@ describe('setDataResidency', () => { afterEach(() => { console.warn.restore(); }); - + + it('should have default value of hostname as https://api.sendgrid.com/', () => { + expect(testClient.defaultRequest.baseUrl).to.equal('https://api.sendgrid.com/'); + expect(testClient.region).to.equal(''); + }); it('should send to host EU', () => { testClient.setDataResidency('eu'); expect(testClient.defaultRequest.baseUrl).to.equal('https://api.eu.sendgrid.com/'); @@ -3125,10 +3129,6 @@ describe('setDataResidency', () => { testClient.setDataResidency(null); expect(consoleWarnSpy.calledOnce).to.equal(true); }); - it('should have default value of hostname as https://api.sendgrid.com/', () => { - expect(testClient.defaultRequest.baseUrl).to.equal('https://api.sendgrid.com/'); - expect(testClient.region).to.equal(''); - }); it('setting the API Key wont reset the region set', () => { testClient.setDataResidency('eu'); testClient.setApiKey('SG.1234567890');