From 0f434eb45245367f1c8a06ac585c69368cb5e746 Mon Sep 17 00:00:00 2001 From: Jesse Wright <63333554+jeswr@users.noreply.github.com> Date: Tue, 21 Nov 2023 11:51:25 +0000 Subject: [PATCH] chore: fix not an Access Grant test --- src/gConsent/manage/getAccessGrant.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gConsent/manage/getAccessGrant.test.ts b/src/gConsent/manage/getAccessGrant.test.ts index 145178dc5..27b0d1ecc 100644 --- a/src/gConsent/manage/getAccessGrant.test.ts +++ b/src/gConsent/manage/getAccessGrant.test.ts @@ -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"; @@ -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"]]), }), }),