Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Dec 11, 2023
1 parent 7408291 commit 554a8b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/credential/issue-verify-flow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ test('Create issuer Did', async ({ request }) => {
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
});
issuerDid = (await response.json()).did;
console.log(`issuerDid: ${issuerDid}`);
expect(response).toBeOK();
expect(response.status()).toBe(StatusCodes.OK);
});
Expand All @@ -32,6 +33,7 @@ test(' Issue a jwt credential', async ({ request }) => {
'Content-Type': 'application/json',
},
});
console.log(await response.json());
expect(response).toBeOK();
expect(response.status()).toBe(StatusCodes.OK);
});
Expand All @@ -45,6 +47,7 @@ test(' Issue a jsonLD credential', async ({ request }) => {
'Content-Type': 'application/json',
},
});
console.log(await response.json());
expect(response).toBeOK();
expect(response.status()).toBe(StatusCodes.OK);

Check failure on line 52 in tests/credential/issue-verify-flow.spec.ts

View workflow job for this annotation

GitHub Actions / Build & Test / Build Node.js

[chromium] › credential/issue-verify-flow.spec.ts:41:1 › Issue a jsonLD credential

1) [chromium] › credential/issue-verify-flow.spec.ts:41:1 › Issue a jsonLD credential ─────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 50 | console.log(await response.json()); 51 | expect(response).toBeOK(); > 52 | expect(response.status()).toBe(StatusCodes.OK); | ^ 53 | }); 54 | at /home/runner/work/credential-service/credential-service/tests/credential/issue-verify-flow.spec.ts:52:28

Check failure on line 52 in tests/credential/issue-verify-flow.spec.ts

View workflow job for this annotation

GitHub Actions / Build & Test / Build Node.js

[chromium] › credential/issue-verify-flow.spec.ts:41:1 › Issue a jsonLD credential

1) [chromium] › credential/issue-verify-flow.spec.ts:41:1 › Issue a jsonLD credential ─────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 50 | console.log(await response.json()); 51 | expect(response).toBeOK(); > 52 | expect(response.status()).toBe(StatusCodes.OK); | ^ 53 | }); 54 | at /home/runner/work/credential-service/credential-service/tests/credential/issue-verify-flow.spec.ts:52:28

Check failure on line 52 in tests/credential/issue-verify-flow.spec.ts

View workflow job for this annotation

GitHub Actions / Build & Test / Build Node.js

[chromium] › credential/issue-verify-flow.spec.ts:41:1 › Issue a jsonLD credential

1) [chromium] › credential/issue-verify-flow.spec.ts:41:1 › Issue a jsonLD credential ─────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 50 | console.log(await response.json()); 51 | expect(response).toBeOK(); > 52 | expect(response.status()).toBe(StatusCodes.OK); | ^ 53 | }); 54 | at /home/runner/work/credential-service/credential-service/tests/credential/issue-verify-flow.spec.ts:52:28
});

0 comments on commit 554a8b3

Please sign in to comment.