diff --git a/tests/TestEndpoints.js b/tests/TestEndpoints.js index 5dcab19..01d81ee 100644 --- a/tests/TestEndpoints.js +++ b/tests/TestEndpoints.js @@ -26,7 +26,8 @@ export class TestEndpoints { async issue(credential) { const {issuer} = this; const issueBody = createRequestBody({issuer, vc: credential}); - return post(issuer, issueBody); + const response = await post(issuer, issueBody); + return response?.verifiableCredential || response; } // FIXME implement createVp for implementation endpoints in the future // @see https://w3c-ccg.github.io/vc-api/#create-presentation diff --git a/tests/fixtures.js b/tests/fixtures.js index 6b1f352..d29b859 100644 --- a/tests/fixtures.js +++ b/tests/fixtures.js @@ -26,6 +26,6 @@ export const envelopedPresentation = { export const relatedResource = { id: 'https://www.w3.org/ns/credentials/v2', mediaType: 'application/ld+json', - digestSRI: 'sha384-NSOcNpmdIVUxIJGvGUoe22FjTWrXiaXlsZ8q6912LdnR3KraQO2n75Ica4wK4Qeg', - digestMultibase: 'uJKGMkOmFbVJhEfKTduMC2XCyvRAYLjOVmZWwIH1wQ7k', + digestSRI: 'sha384-l/HrjlBCNWyAX91hr6LFV2Y3heB5Tcr6IeE4/Tje8YyzYBM8IhqjHWiWpr8+ZbYU', + digestMultibase: 'uEiBZlVztZpfWHgPyslVv6-UwirFoQoRvW1htfx963sknNA', };