From d806b4eb756618e8b6d94a99da8bb18a6e2e0f7a Mon Sep 17 00:00:00 2001 From: Michael Brewer Date: Sat, 25 May 2024 11:51:39 -0700 Subject: [PATCH] test(git-config): check terraform version --- .github/workflows/ci.yaml | 1 + git-config/main.test.ts | 14 +++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 960cd03..25ab8f6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,6 +21,7 @@ jobs: with: bun-version: latest - name: Setup + run: terraform --version run: bun install - run: bun test pretty: diff --git a/git-config/main.test.ts b/git-config/main.test.ts index 8da34d0..fe410aa 100644 --- a/git-config/main.test.ts +++ b/git-config/main.test.ts @@ -13,15 +13,11 @@ describe("git-config", async () => { }); it("can run apply allow_username_change and allow_email_change disabled", async () => { - const state = await runTerraformApply( - import.meta.dir, - { - agent_id: "foo", - allow_username_change: false, - allow_email_change: false, - }, - {}, - ); + const state = await runTerraformApply(import.meta.dir, { + agent_id: "foo", + allow_username_change: "false", + allow_email_change: "false", + }); const resources = state.resources; expect(resources).toHaveLength(3);