Skip to content

Commit

Permalink
Add test for invalid result
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Apr 24, 2024
1 parent b9cad80 commit 35073d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ not_be_replacedA: '0.39.0' # selfup { "extract": "\\d[^']+", "replacer": ["echo"
ChangedCount: 1,
Total: 1,
},
}, {
description: "Command returns unupdatable string",
input: `broken_command: '0.39.0' # selfup { "extract": "\\d[^']+", "replacer": ["echo", ":)"] }
`,
prefix: defaultPrefix,
skipBy: "",
ok: false,
}, {
description: "Command is not found",
input: `Header
Expand Down

0 comments on commit 35073d5

Please sign in to comment.