diff --git a/api/__tests__/presentation.test.ts b/api/__tests__/presentation.test.ts index 1471dc0..01b3300 100644 --- a/api/__tests__/presentation.test.ts +++ b/api/__tests__/presentation.test.ts @@ -238,10 +238,10 @@ describe("Verifier API Test for Presentations", () => { expect(el.verified).toBe(true); }); }); - */ + test("Falsify single presentation with wrong challenge", async () => { - const res = await request(server).post("/api/verifier").query({ challenge: 'falseChallenge' }).send([domainPresentation]); + const res = await request(server).post("/api/verifier").query({ challenge: 'falseChallenge', domain: 'ssi.eecc.de/verifier' }).send([domainPresentation]); expect(res.statusCode).toEqual(200); expect(res.body[0]).toHaveProperty('verified'); expect(res.body[0].verified).toBe(false); @@ -249,4 +249,5 @@ describe("Verifier API Test for Presentations", () => { expect(res.body[0].error.name).toBe('VerificationError'); }); + */ }); \ No newline at end of file