Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetborole committed Oct 3, 2023
1 parent fab2f96 commit adbfd16
Show file tree
Hide file tree
Showing 2 changed files with 534 additions and 2 deletions.
30 changes: 30 additions & 0 deletions test/fixtures/get-auth-requests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
function getAsapRequestsForAlg (alg, privateKey) {
return {
auth: {
type: 'asap',
asap: {
alg: alg,
kid: 'test-kid',
iss: 'postman.com',
exp: '2h',
aud: 'test-audience',
privateKey: privateKey,
claims: {
jti: 'test-jti'
}
}
},
url: 'httpbin.org/get',
method: 'GET',
header: [],
data: {
mode: 'formdata',
content: []
},
description: ''
};
}

module.exports = {
getAsapRequestsForAlg
};
Loading

0 comments on commit adbfd16

Please sign in to comment.