Skip to content

Commit

Permalink
Use --fmt command since --dump-format json is stable
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Oct 9, 2023
1 parent e68c07e commit 974acd5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unstable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ default:
for val in ["true", "some-arbitrary-string"] {
Test::new()
.justfile(justfile)
.args(["--dump", "--dump-format", "json"])
.args(["--fmt"])
.env("JUST_UNSTABLE", val)
.status(EXIT_SUCCESS)
.stdout_regex("*")
.stderr_regex("Wrote justfile to `.*`\n")
.run();
}
}
Expand All @@ -27,10 +27,10 @@ default:
for val in ["0", "", "false"] {
Test::new()
.justfile(justfile)
.args(["--dump", "--dump-format", "json"])
.args(["--fmt"])
.env("JUST_UNSTABLE", val)
.status(EXIT_FAILURE)
.stderr("error: The JSON dump format is currently unstable. Invoke `just` with the `--unstable` flag to enable unstable features.\n")
.stderr("error: The `--fmt` command is currently unstable. Invoke `just` with the `--unstable` flag to enable unstable features.\n")
.run();
}
}
Expand All @@ -43,8 +43,8 @@ default:
"#;
Test::new()
.justfile(justfile)
.args(["--dump", "--dump-format", "json"])
.args(["--fmt"])
.status(EXIT_FAILURE)
.stderr("error: The JSON dump format is currently unstable. Invoke `just` with the `--unstable` flag to enable unstable features.\n")
.stderr("error: The `--fmt` command is currently unstable. Invoke `just` with the `--unstable` flag to enable unstable features.\n")
.run();
}

0 comments on commit 974acd5

Please sign in to comment.