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 1a4b670 commit 6b9d89d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/client/src/client.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
const nock = require('nock');
const sgClient = require('./client');
const testClient = require('./client');
const testRequest = (request, statusCode) => {
const sgClient = require('./client');
sgClient.setApiKey('SG.API Key');
Expand Down Expand Up @@ -3096,12 +3097,13 @@ describe('test_whitelabel_links__link_id__subuser_post', () => {
describe('test client', () => {
var testClient = require('./client');
describe('setDataResidency', () => {
//testClient.setDataResidency('eu');
testClient.setDefaultRequest('baseUrl', 'abcde');
testClient.setDataResidency('eu');
console.log('before: ');
console.log(testClient);
console.log('Actual:', testClient.defaultRequest.baseUrl);
it('should have hostname as global', () => {
testClient.setDataResidency('eu');
console.log('after: ');
console.log(testClient);
expect(testClient.defaultRequest.baseUrl).to.equal('api.eu.sendgrid.com');
});
Expand Down

0 comments on commit 6b9d89d

Please sign in to comment.