Skip to content

Commit

Permalink
fix a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
karla-vm committed Jan 5, 2024
1 parent 0b805b5 commit a4d6209
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions services/app-api/handlers/reports/submit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ const testSubmitEvent: APIGatewayProxyEvent = {
};

describe("Test submitReport API method", () => {
test("Test report submission by a state user without access to a report type throws 403 error", async () => {
const res = await submitReport(testSubmitEvent, null);

expect(res.statusCode).toBe(403);
expect(res.body).toContain(error.UNAUTHORIZED);
});
test("Test Report not found in DynamoDB", async () => {
mockDocumentClient.get.promise.mockReturnValueOnce({ Item: undefined });
const res = await submitReport(testSubmitEvent, null);
Expand Down

0 comments on commit a4d6209

Please sign in to comment.