Skip to content

Commit

Permalink
SK-1368 Fx failing Client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skyflow-vivek committed Jan 5, 2024
1 parent b587291 commit e11e341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/vault-api/Client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 () => {
Expand Down

0 comments on commit e11e341

Please sign in to comment.