From 974acd56554d0d8186c464cf330833ddeda396f8 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sun, 8 Oct 2023 20:33:13 -0700 Subject: [PATCH] Use --fmt command since --dump-format json is stable --- tests/unstable.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unstable.rs b/tests/unstable.rs index fcea21b7b7..23a5fa6ede 100644 --- a/tests/unstable.rs +++ b/tests/unstable.rs @@ -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(); } } @@ -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(); } } @@ -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(); }