1
0
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:
Saad Jutt
2022-03-01 17:53:04 +05:00
parent 96cb77da45
commit 2e14d4f28c

View File

@@ -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'
} }
) )
}) })