diff --git a/src/graph/handler.ts b/src/graph/handler.ts index 224f0dbe..9a9a27b8 100644 --- a/src/graph/handler.ts +++ b/src/graph/handler.ts @@ -36,13 +36,10 @@ export const handler = async function ({ positionals, values }: Arguments) { let allGraphText = '' const allGraphs = [] as any[] const api = await getApi() - let presentations = await getPresentations({ sent: true, received: true, api }) - presentations = presentations.items.filter((item) => { - return item.id === 'urn:transmute:presentation:2d05386b-ec60-4f7a-b531-de1d1fd6bfec' - }) + const presentations = await getPresentations({ sent: true, received: true, api }) const d = await driver() const session = d.session() - for (const item of presentations) { + for (const item of presentations.items) { try { const content = encoder.encode(item.content) graph = await jsongraph.graph(content, 'application/vp+jwt') diff --git a/tests/jsonld2cypher.test.ts b/tests/jsonld2cypher.test.ts index 9fe67528..0399ff49 100644 --- a/tests/jsonld2cypher.test.ts +++ b/tests/jsonld2cypher.test.ts @@ -26,23 +26,24 @@ it.skip('graph assist with regular jwt', async () => { expect(secret).toHaveBeenCalledTimes(1) }) -it.skip('graph assist with transmute platform presentations', async () => { - await facade(`graph assist \ +it.skip('graph assist with verifiable credential', async () => { + await facade(`graph assist ./tests/fixtures/issuer-claims.json \ +--content-type application/vc \ --graph-type application/gql \ --env ./.env \ ---push `) - expect(debug).toHaveBeenCalledTimes(0) +--verbose --push `) + expect(debug).toHaveBeenCalledTimes(1) expect(output).toHaveBeenCalledTimes(1) expect(secret).toHaveBeenCalledTimes(1) }) - -it.skip('graph assist with verifiable credential', async () => { - await facade(`graph assist ./tests/fixtures/issuer-claims.json \ ---content-type application/vc \ +it.skip('graph assist with transmute platform presentations', async () => { + await facade(`graph assist \ --graph-type application/gql \ --env ./.env \ ---verbose --push `) +--push +--verbose +`) expect(debug).toHaveBeenCalledTimes(1) expect(output).toHaveBeenCalledTimes(1) expect(secret).toHaveBeenCalledTimes(1)