Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update client.spec.js
Browse files Browse the repository at this point in the history
shrutiburman committed Nov 19, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0f1f90c commit 54c256b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/client/src/client.spec.js
Original file line number Diff line number Diff line change
@@ -16,15 +16,11 @@ describe('client', () => {
nock.cleanAll();
});


describe('setDataResidency', () => {
const testClient = require('./client');
testClient.setDataResidency('eu');
console.log(testClient);
console.log('Actual:', testClient.defaultRequest.baseUrl);
sgClient.setDataResidency('eu');
console.log('Actual:', sgClient.defaultRequest.baseUrl);
it('should have hostname as global', () => {
console.log(testClient);
expect(testClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com');
expect(sgClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com');
});
});

0 comments on commit 54c256b

Please sign in to comment.