Skip to content

Commit

Permalink
chore: use jwt for default tests
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux committed Oct 12, 2023
1 parent d68e083 commit 71db0a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/src/test/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {expect, spy, fetchMock} from '@ringcentral/sdk-utils/test';
import {expect, fetchMock, spy} from '@ringcentral/sdk-utils/test';

import {SDK, SDKOptions} from '../SDK';

fetchMock.config.fallbackToNetwork = true;
Expand Down Expand Up @@ -99,8 +100,7 @@ export function asyncTest(fn: (sdk: SDK) => any, sdkOption: SDKOptions = {}) {
const platofrm = sdk.platform();

await platofrm.login({
username: 'whatever',
password: 'whatever',
jwt: 'jwt_string',
});

await fn(sdk);
Expand Down Expand Up @@ -176,4 +176,4 @@ export function getExternalDiscoveryMockData() {
};
}

export {spy, SDK, expect};
export {expect, SDK, spy};

0 comments on commit 71db0a9

Please sign in to comment.