From d7f68e8f17d3eeab3d47ab6e6634079361158a9a Mon Sep 17 00:00:00 2001 From: Kerry Sheldon Date: Mon, 15 Jan 2024 12:19:13 -0700 Subject: [PATCH] maybe fake credentials --- .github/workflows/pr.yml | 5 +++++ backend/test/unit/api/votes-handler.spec.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4267295..80b6ab5 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -27,6 +27,11 @@ jobs: - 8000:8000 steps: + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: fake + aws-secret-access-key: fake - uses: actions/checkout@v2 - name: Install dependencies run: | diff --git a/backend/test/unit/api/votes-handler.spec.ts b/backend/test/unit/api/votes-handler.spec.ts index 6b0cfae..0b30df3 100644 --- a/backend/test/unit/api/votes-handler.spec.ts +++ b/backend/test/unit/api/votes-handler.spec.ts @@ -43,7 +43,7 @@ describe("handler", () => { const response = await handler({ queryStringParameters: { chamber: "bad" }, }); - expect(response).to.deep.equal({ + expect(response).to.deep.include({ statusCode: 400, body: "Invalid chamber", });