1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 13:00:05 +00:00

chore(*): clean up, handle debug responses

This commit is contained in:
Krishna Acondy
2021-02-04 09:42:39 +00:00
parent 8edb00f869
commit 613cc6b9ef
6 changed files with 125 additions and 169 deletions

View File

@@ -142,7 +142,10 @@ describe('AuthManager', () => {
})
)
mockedAxios.post.mockImplementation(() =>
Promise.resolve({ data: mockLoginAuthoriseRequiredResponse })
Promise.resolve({
data: mockLoginAuthoriseRequiredResponse,
config: { url: 'https://test.com/SASLogon/login' }
})
)
await authManager.logIn(userName, password)