Skip to content

Commit

Permalink
fetchRemoteContexts
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Oct 16, 2024
1 parent 5e5dacf commit 7abcf82
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/e2e/parallel/credential/issue-verify-flow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ test(' Issue a jsonLD credential with Ed25519VerificationKey2018', async ({ requ
id: credentialData.subjectDid,
});

const verifyResponse = await request.post(`/credential/verify`, {
const verifyResponse = await request.post(`/credential/verify?fetchRemoteContexts=true`, {
data: JSON.stringify({
credential: jsonldCredential,
fetchRemoteContexts: true,
}),
headers: {
'Content-Type': CONTENT_TYPE.APPLICATION_JSON,
Expand Down Expand Up @@ -123,10 +122,9 @@ test(' Issue a jsonLD credential with Ed25519VerificationKey2020', async ({ requ
});
expect(jsonldCredential['@context']).toContain('https://w3id.org/security/suites/ed25519-2020/v1');

const verifyResponse = await request.post(`/credential/verify`, {
const verifyResponse = await request.post(`/credential/verify?fetchRemoteContexts=true`, {
data: JSON.stringify({
credential: jsonldCredential,
fetchRemoteContexts: true,
}),
headers: {
'Content-Type': CONTENT_TYPE.APPLICATION_JSON,
Expand Down Expand Up @@ -163,10 +161,9 @@ test(' Issue a jsonLD credential with JsonWebKey2020', async ({ request }) => {
});
expect(jsonldCredential['@context']).toContain('https://w3id.org/security/suites/jws-2020/v1');

const verifyResponse = await request.post(`/credential/verify`, {
const verifyResponse = await request.post(`/credential/verify?fetchRemoteContexts=true`, {
data: JSON.stringify({
credential: jsonldCredential,
fetchRemoteContexts: true,
}),
headers: {
'Content-Type': CONTENT_TYPE.APPLICATION_JSON,
Expand Down

0 comments on commit 7abcf82

Please sign in to comment.