fix(json-edit): with actual arg instead of stupid str replace
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -40,7 +40,7 @@ pub fn test_can_update_version_in_jq() {
|
||||
pretty_assertions::assert_eq!(initial_content, actual_file);
|
||||
|
||||
let edit_options = JsonEditOptions {
|
||||
jq: r#".some.nested[].structure.version="%%version%%""#.into(),
|
||||
jq: r#".some.nested[].structure.version=$version"#.into(),
|
||||
};
|
||||
|
||||
edit_options.execute(&json_file, "v1.0.2").unwrap();
|
||||
|
Reference in New Issue
Block a user