Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angelaco11 committed Sep 16, 2024
1 parent 843f2a5 commit c58a3e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/app-api/handlers/measures/tests/get.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jest.mock("../../dynamoUtils/convertToDynamoExpressionVars", () => ({

const event = { ...testEvent };
process.env.measureTableName = "SAMPLE TABLE";
process.env.measureTable = "SAMPLE TABLE";

describe("Test Get Measure Handlers", () => {
beforeEach(() => {
Expand Down Expand Up @@ -120,7 +121,10 @@ describe("Test Get Measure Handlers", () => {
expect(res.body).toContain("LBW-CH");
expect(dbLib.queryAll).toHaveBeenCalledWith({
TableName: "SAMPLE TABLE",
testValue: "test",
KeyConditionExpression: "compoundKey = :compoundKey",
ExpressionAttributeValues: {
":compoundKey": "FL2021ACS",
},
});
});

Expand Down

0 comments on commit c58a3e1

Please sign in to comment.