From 87083aedbf61ab23f844b03fa73353e2d2701553 Mon Sep 17 00:00:00 2001 From: Akira Hayashi Date: Wed, 5 Jun 2024 05:01:25 +0900 Subject: [PATCH] Unify parens into curly braces --- Makefile | 2 +- src/cost.test.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8dc8ba8..0ee651b 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ $(BUILD_DIR): $(SRC_FILES) $(NODE_MODULES) build: $(BUILD_DIR) run: build - node ./bin/index.js --profile "${AWS_PROFILE}" --access-key "${ACCESS_KEY}" --secret-key "${SECRET_KEY}" --role-arn "${ROLE_ARN}" --region "${AWS_REGION}" -S $(SLACK_TOKEN_AWS_COST_CLI) -C $(SLACK_CHANNEL_ID) --breakdown-period $(BREAKDOWN_PERIOD) + node ./bin/index.js --profile "${AWS_PROFILE}" --access-key "${ACCESS_KEY}" --secret-key "${SECRET_KEY}" --role-arn "${ROLE_ARN}" --region "${AWS_REGION}" -S "${SLACK_TOKEN_AWS_COST_CLI}" -C "${SLACK_CHANNEL_ID}" --breakdown-period "${BREAKDOWN_PERIOD}" test: pnpm test diff --git a/src/cost.test.ts b/src/cost.test.ts index 7504401..dc6f24f 100644 --- a/src/cost.test.ts +++ b/src/cost.test.ts @@ -134,6 +134,8 @@ describe('Cost Functions', () => { }, }; + console.log(expectedTotalCosts); + const roundToTwoDecimals = (num: number) => Math.round(num * 100) / 100; Object.keys(totalCosts.totals).forEach((key) => {