Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Aug 27, 2024
1 parent e652854 commit cfcd451
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
7 changes: 2 additions & 5 deletions src/graph/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
19 changes: 10 additions & 9 deletions tests/jsonld2cypher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cfcd451

Please sign in to comment.