Skip to content

Commit

Permalink
chore: fix not an Access Grant test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Nov 21, 2023
1 parent e093652 commit 0f434eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gConsent/manage/getAccessGrant.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ import type * as CrossFetch from "@inrupt/universal-fetch";
import { Response } from "@inrupt/universal-fetch";
import { beforeAll, describe, expect, it, jest } from "@jest/globals";

import { mockAccessGrantObject, mockAccessGrantVc } from "../util/access.mock";
import {
mockAccessGrantObject,
mockAccessGrantVc,
mockAccessRequestVc,
} from "../util/access.mock";
import { toBeEqual } from "../util/toBeEqual.mock";
import { getAccessGrant } from "./getAccessGrant";

Expand Down Expand Up @@ -83,7 +87,7 @@ describe("getAccessGrant", () => {
return expect(
getAccessGrant("https://some.vc.url", {
fetch: async () =>
new Response(JSON.stringify(mockAccessGrant), {
new Response(JSON.stringify(await mockAccessRequestVc()), {
headers: new Headers([["content-type", "application/json"]]),
}),
}),
Expand Down

0 comments on commit 0f434eb

Please sign in to comment.