From c2f54a572647da349d25ed60ee82fa656932c3a4 Mon Sep 17 00:00:00 2001 From: Felix Riehm Date: Wed, 6 Mar 2024 10:12:15 +0100 Subject: [PATCH] update api url --- __tests__/main.test.ts | 2 +- src/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 82b8a75..ab4e12d 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -55,7 +55,7 @@ describe('action', () => { await main.run() expect(runMock).toHaveReturned() - expect(setOutputMock).toHaveBeenCalledTimes(0) + expect(setOutputMock).toHaveBeenCalledTimes(1) expect(errorMock).not.toHaveBeenCalled() }) }) diff --git a/src/api.ts b/src/api.ts index 9430fa5..85fe0ef 100644 --- a/src/api.ts +++ b/src/api.ts @@ -14,7 +14,7 @@ export async function certify( let res try { res = await axios.post( - `${baseUrl}/generateJsonResponse?api_key=b7fe0027-b419-4b73-958d-0b3153366e7f`, //'http://hatnote.mpdl.mpg.de/bloxbergcertifyapptest' + `${baseUrl}/generateJsonResponse`, { publicKey: metaData.bloxbergAddress, crid: data,