mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-16 08:30:07 +00:00
lint: fix
This commit is contained in:
@@ -102,7 +102,7 @@ export class AuthManager {
|
|||||||
this.logOut()
|
this.logOut()
|
||||||
|
|
||||||
const { result: formResponse } = await this.requestClient.get<string>(
|
const { result: formResponse } = await this.requestClient.get<string>(
|
||||||
this.loginUrl.replace('do', ''),
|
this.loginUrl.replace('.do', ''),
|
||||||
undefined,
|
undefined,
|
||||||
'text/plain'
|
'text/plain'
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -176,7 +176,10 @@ describe('AuthManager', () => {
|
|||||||
|
|
||||||
const response = await authManager.checkSession()
|
const response = await authManager.checkSession()
|
||||||
expect(response.isLoggedIn).toBeTruthy()
|
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,
|
withCredentials: true,
|
||||||
responseType: 'text',
|
responseType: 'text',
|
||||||
transformResponse: undefined,
|
transformResponse: undefined,
|
||||||
@@ -184,7 +187,8 @@ describe('AuthManager', () => {
|
|||||||
Accept: '*/*',
|
Accept: '*/*',
|
||||||
'Content-Type': 'text/plain'
|
'Content-Type': 'text/plain'
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
)
|
||||||
|
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user