1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-02 10:10:06 +00:00

lint: fix

This commit is contained in:
2021-03-28 19:27:57 +02:00
parent 1fabb9e610
commit dce8a08a86
2 changed files with 13 additions and 9 deletions

View File

@@ -102,7 +102,7 @@ export class AuthManager {
this.logOut()
const { result: formResponse } = await this.requestClient.get<string>(
this.loginUrl.replace('do', ''),
this.loginUrl.replace('.do', ''),
undefined,
'text/plain'
)

View File

@@ -176,7 +176,10 @@ describe('AuthManager', () => {
const response = await authManager.checkSession()
expect(response.isLoggedIn).toBeTruthy()
expect(mockedAxios.get).toHaveBeenNthCalledWith(1, `http://test-server.com/SASJobExecution`, {
expect(mockedAxios.get).toHaveBeenNthCalledWith(
1,
`http://test-server.com/SASJobExecution`,
{
withCredentials: true,
responseType: 'text',
transformResponse: undefined,
@@ -184,7 +187,8 @@ describe('AuthManager', () => {
Accept: '*/*',
'Content-Type': 'text/plain'
}
})
}
)
done()
})