Skip to content

Commit

Permalink
Update failure messages with hint and remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JonoPrest committed Jul 4, 2024
1 parent a41a982 commit f7b7d10
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
6 changes: 5 additions & 1 deletion codegenerator/cli/src/cli_args/clap_definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ mod test {

//current is trimmed because then print command
//adds a line at the end of the md file
assert_eq!(md_current.trim(), md_output.trim());
assert_eq!(
md_current.trim(),
md_output.trim(),
"Please run 'make update-generated-docs'"
);
}
}
18 changes: 8 additions & 10 deletions codegenerator/cli/src/config_parsing/human_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,10 @@ mod tests {

let actual_schema = schema_for!(HumanConfig);

// When the test is failing and you want to update the schema, uncomment this line
// and paste the output into the schema file at npm/envio/evm.schema.json
// println!("{}", serde_json::to_string_pretty(&actual_schema).unwrap());

assert_eq!(npm_schema, actual_schema);
assert_eq!(
npm_schema, actual_schema,
"Please run 'make update-generated-docs'"
);
}

#[test]
Expand All @@ -365,11 +364,10 @@ mod tests {

let actual_schema = schema_for!(fuel::HumanConfig);

// When the test is failing and you want to update the schema, uncomment this line
// and paste the output into the schema file at npm/envio/fuel.schema.json
// println!("{}", serde_json::to_string_pretty(&actual_schema).unwrap());

assert_eq!(npm_schema, actual_schema);
assert_eq!(
npm_schema, actual_schema,
"Please run 'make update-generated-docs'"
);
}

#[test]
Expand Down

0 comments on commit f7b7d10

Please sign in to comment.