From e11e34196c4eccf1a168a9d22975db5769dbecb6 Mon Sep 17 00:00:00 2001 From: skyflow-vivek Date: Fri, 5 Jan 2024 11:36:35 +0530 Subject: [PATCH] SK-1368 Fx failing Client tests --- test/vault-api/Client.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/vault-api/Client.test.js b/test/vault-api/Client.test.js index 29db566..c835c32 100644 --- a/test/vault-api/Client.test.js +++ b/test/vault-api/Client.test.js @@ -33,7 +33,7 @@ describe("Client Class",()=>{ const data = JSON.stringify({ name: "John Doe", age: 30 }); const headers = { "content-type": "application/json","sky-metadata":JSON.stringify(generateSDKMetrics()) }; axios.mockImplementation(() => - Promise.resolve({ data: { message: "Success" } }) + Promise.resolve({ data: { message: "Success" }, headers: { "x-request-id": "22r5-dfbf-3543" }}) ); const response = await client.request(request); @@ -44,7 +44,7 @@ describe("Client Class",()=>{ data: data, headers: headers, }); - expect(response).toEqual({ message: "Success" }); + expect(response).toEqual({ message: "Success", requestId: "22r5-dfbf-3543" }); }); test("should return an error if the request to client fails", async () => {