mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-04 11:10:05 +00:00
test(viya): updated specs for getAccessTokenForViya
This commit is contained in:
@@ -35,11 +35,12 @@ describe('getAccessTokenForViya', () => {
|
|||||||
|
|
||||||
expect(requestClient.post).toHaveBeenCalledWith(
|
expect(requestClient.post).toHaveBeenCalledWith(
|
||||||
'/SASLogon/oauth/token',
|
'/SASLogon/oauth/token',
|
||||||
expect.any(NodeFormData),
|
expect.any(URLSearchParams),
|
||||||
undefined,
|
undefined,
|
||||||
expect.stringContaining('multipart/form-data; boundary='),
|
'application/x-www-form-urlencoded',
|
||||||
{
|
{
|
||||||
Authorization: 'Basic ' + token
|
Authorization: 'Basic ' + token,
|
||||||
|
Accept: 'application/json'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user