From 27f8411c3e4283b89360e13a00501adcb7f4981b Mon Sep 17 00:00:00 2001 From: lenkan Date: Sat, 6 Jan 2024 18:13:42 +0100 Subject: [PATCH] add check for revoked credential for holder --- examples/integration-scripts/credentials.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/integration-scripts/credentials.test.ts b/examples/integration-scripts/credentials.test.ts index 61f9a124..28c9fbd0 100644 --- a/examples/integration-scripts/credentials.test.ts +++ b/examples/integration-scripts/credentials.test.ts @@ -447,4 +447,17 @@ test('single signature credentials', async () => { assert.equal(issuerCredential.status.s, '1'); }); + + await step('Holder has revoked QVI credential', async () => { + await retry( + async () => { + const holderCredential = await holderClient + .credentials() + .get(holderAid.name, qviCredentialId); + + assert.equal(holderCredential.status.s, '1'); + }, + { timeout: 3000 } + ); + }); }, 90000);