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 19, 2023
1 parent 4586b04 commit 23e238c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 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');
Expand Down Expand Up @@ -3095,17 +3096,7 @@ describe('test_whitelabel_links__link_id__subuser_post', () => {


describe('test client', () => {
let testClient;

beforeEach(() => {
// Create a new instance of testClient before each test
testClient = require('./client');
});

afterEach(() => {
console.warn.restore();
nock.cleanAll();
});
const testClient = require('./client');

describe('setDataResidency', () => {
testClient.setDataResidency('eu');
Expand Down

0 comments on commit 23e238c

Please sign in to comment.