Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed May 30, 2024
1 parent 8530f1d commit feea3eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tools/diff-so-fancy/diff_so_fancy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ toolTest({
testConfigs: [
makeToolTestConfig({
command: ["diff-so-fancy"],
expectedExitCode: 0,
expectedExitCode: 25,
expectedOut: "modified:",
stdin: sampleDiff,
}),
Expand Down
9 changes: 6 additions & 3 deletions tools/yq/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ downloads:
cpu:
x86_64: 386
arm_64: arm64
url: https://github.com/mikefarah/yq/releases/download/v${version}/yq_${os}_${cpu}.tar.gz
url: https://github.com/mikefarah/yq/releases/download/v${version}/yq_${os}_${cpu}
- os:
windows: windows
cpu:
x86_64: 386
arm_64: arm64
url: https://github.com/mikefarah/yq/releases/download/v${version}/yq_${os}_${cpu}.zip
url: https://github.com/mikefarah/yq/releases/download/v${version}/yq_${os}_${cpu}.exe
tools:
definitions:
- name: yq
download: yq
known_good_version: 4.40.5
known_good_version: 4.44.1
shims: [yq]
health_checks:
- command: yq --version
parse_regex: version v${semver}
7 changes: 3 additions & 4 deletions tools/yq/yq.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { makeToolTestConfig, toolTest } from "tests";
import { toolInstallTest } from "tests";

// The binary name varies by platform so we can't roll this into a health_check as-is.
toolTest({
toolInstallTest({
toolName: "yq",
toolVersion: "4.40.5",
testConfigs: [makeToolTestConfig({ command: ["yq", "--version"], expectedOut: "v4.40.5" })],
toolVersion: "4.44.1",
});

0 comments on commit feea3eb

Please sign in to comment.