Skip to content

Commit

Permalink
jest cache
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Jul 8, 2023
1 parent 1467d07 commit 91cb0a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/types/W3C.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


import { DidJwkUrl } from "../../dist"

import { CompactJsonWebSignature } from "../jose/CompactJsonWebSignature"
import { PrivateKeyJwk } from "../jose/PrivateKeyJwk"
import { PublicKeyJwk } from "../jose/PublicKeyJwk"
Expand Down
4 changes: 2 additions & 2 deletions test/w3c/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import transmute from "../../src";
import yaml from 'js-yaml'
import moment from 'moment'
import { StatusList } from '@transmute/vc-jwt-status-list'
import { CompactJsonWebSignature } from "../../src/jose/CompactJsonWebSignature";


it("validation", async () => {
Expand Down Expand Up @@ -44,7 +45,6 @@ it("validation", async () => {
},
});
const validator = await transmute.w3c.validator({
jwt: vc,
issuer: async (jwt: string) => {
const id = transmute.w3c.getPublicKeyIdFromToken(jwt);
const { publicKeyJwk } = await transmute.did.jwk.dereference({
Expand All @@ -70,7 +70,7 @@ it("validation", async () => {
},
})
// this resolver MUST return application/vc+ld+jwt
return statusList
return statusList as CompactJsonWebSignature
},
credentialSchema: async (id: string) => {
const loaded = yaml.load(`
Expand Down

0 comments on commit 91cb0a0

Please sign in to comment.