From 71db0a94a121acbc85ceeac39a37d28f6a8c7c5e Mon Sep 17 00:00:00 2001 From: embbnux Date: Thu, 12 Oct 2023 12:37:45 +0800 Subject: [PATCH] chore: use jwt for default tests --- sdk/src/test/test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/src/test/test.ts b/sdk/src/test/test.ts index 9a419e6..63d6b1f 100644 --- a/sdk/src/test/test.ts +++ b/sdk/src/test/test.ts @@ -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; @@ -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); @@ -176,4 +176,4 @@ export function getExternalDiscoveryMockData() { }; } -export {spy, SDK, expect}; +export {expect, SDK, spy};