diff --git a/sasjs-tests/package-lock.json b/sasjs-tests/package-lock.json index b19244b..d7e580e 100644 --- a/sasjs-tests/package-lock.json +++ b/sasjs-tests/package-lock.json @@ -2604,7 +2604,7 @@ "node_modules/@sasjs/adapter": { "version": "5.0.0", "resolved": "file:../build/sasjs-adapter-5.0.0.tgz", - "integrity": "sha512-ARa1FFOHFdiVI/oHngmd5AJv6OZxeCwcHkpYEdrpY5syCg3hvTBYvmUZmxN4cRzwSsxAdiO9NGrHMgHbn5fV0Q==", + "integrity": "sha512-mgXmDKqaKLieVaoICBCLwpI8pj4vff6yqOYySe+dX8+YD90yj2UM1AwDfxGakr9NcE2ptIgwYYAi823s4wNAxQ==", "hasInstallScript": true, "license": "ISC", "dependencies": { @@ -23331,7 +23331,7 @@ }, "@sasjs/adapter": { "version": "file:../build/sasjs-adapter-5.0.0.tgz", - "integrity": "sha512-ARa1FFOHFdiVI/oHngmd5AJv6OZxeCwcHkpYEdrpY5syCg3hvTBYvmUZmxN4cRzwSsxAdiO9NGrHMgHbn5fV0Q==", + "integrity": "sha512-mgXmDKqaKLieVaoICBCLwpI8pj4vff6yqOYySe+dX8+YD90yj2UM1AwDfxGakr9NcE2ptIgwYYAi823s4wNAxQ==", "requires": { "@sasjs/utils": "2.44.0", "axios": "0.26.0", diff --git a/sasjs-tests/src/Login.tsx b/sasjs-tests/src/Login.tsx index 2e69fb8..a72b458 100644 --- a/sasjs-tests/src/Login.tsx +++ b/sasjs-tests/src/Login.tsx @@ -11,7 +11,7 @@ const Login = (): ReactElement<{}> => { const handleSubmit = useCallback( (e) => { e.preventDefault() - appContext.adapter.logIn(username, password, 'clientID1').then((res) => { + appContext.adapter.logIn(username, password).then((res) => { appContext.setIsLoggedIn(res.isLoggedIn) }) }, diff --git a/sasjs-tests/src/testSuites/Basic.ts b/sasjs-tests/src/testSuites/Basic.ts index 16c8d42..a318004 100644 --- a/sasjs-tests/src/testSuites/Basic.ts +++ b/sasjs-tests/src/testSuites/Basic.ts @@ -37,7 +37,7 @@ export const basicTests = ( title: 'Log in', description: 'Should log the user in', test: async () => { - return adapter.logIn(userName, password, 'clientID1') + return adapter.logIn(userName, password) }, assertion: (response: any) => response && response.isLoggedIn && response.userName === userName @@ -46,7 +46,7 @@ export const basicTests = ( title: 'Fetch username for already logged in user', description: 'Should log the user in', test: async () => { - await adapter.logIn(userName, password, 'clientID1') + await adapter.logIn(userName, password) const newAdapterIns = new SASjs(adapter.getSasjsConfig()) @@ -61,8 +61,8 @@ export const basicTests = ( 'Should fail on first attempt and should log the user in on second attempt', test: async () => { await adapter.logOut() - await adapter.logIn('invalid', 'invalid', 'clientID1') - return await adapter.logIn(userName, password, 'clientID1') + await adapter.logIn('invalid', 'invalid').catch((err: any) => {}) + return await adapter.logIn(userName, password) }, assertion: (response: any) => response && response.isLoggedIn && response.userName === userName @@ -79,7 +79,7 @@ export const basicTests = ( stringData, undefined, async () => { - await adapter.logIn(userName, password, 'clientID1') + await adapter.logIn(userName, password) } ) },