Skip to content

Commit

Permalink
test: simplify threshold parsing test
Browse files Browse the repository at this point in the history
Removed redundant userActivitySettings variable.
  • Loading branch information
gentlementlegen committed Oct 10, 2024
1 parent f851c43 commit 6bd7937
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] },
Expand Down

0 comments on commit 6bd7937

Please sign in to comment.