From 6bd7937d43164f9eb693ca112f78ae60031e95a7 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Thu, 10 Oct 2024 21:37:45 +0900 Subject: [PATCH] test: simplify threshold parsing test Removed redundant userActivitySettings variable. --- tests/main.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/main.test.ts b/tests/main.test.ts index 654acfc..3df70e2 100644 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -47,9 +47,7 @@ describe("User start/stop", () => { }); it("Should parse thresholds", async () => { const pluginSettings = Value.Decode(pluginSettingsSchema, Value.Default(pluginSettingsSchema, cfg)); - expect(pluginSettings).toEqual({ warning: 302400000, disqualification: 604800000, watch: { optOut: [STRINGS.PRIVATE_REPO_NAME] } }); - const userActivitySettings = Value.Decode(pluginSettingsSchema, Value.Default(pluginSettingsSchema, cfg)); - expect(userActivitySettings).toEqual({ + expect(pluginSettings).toEqual({ warning: 302400000, disqualification: 604800000, watch: { optOut: [STRINGS.PRIVATE_REPO_NAME] },