Skip to content

Commit

Permalink
fix failing config test
Browse files Browse the repository at this point in the history
Signed-off-by: Marin Veršić <[email protected]>
  • Loading branch information
mversic committed Sep 27, 2022
1 parent aff21d0 commit c391cd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/base/tests/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ struct InnerConfiguration {
fn test_docs() {
assert_eq!(
Configuration::get_doc_recursive(["inner", "b"]).unwrap(),
Some(" Docs from b\n\nHas type `i32`[^1]. Can be configured via environment variable `CONF_INNER_B`".to_owned())
Some(" Docs from b\n\nHas type `i32`. Can be configured via environment variable `CONF_INNER_B`. Refer to [configuration types](#configuration-types) for details.".to_owned())
);
assert_eq!(
Configuration::get_doc_recursive(["inner", "a"]).unwrap(),
Some(
"Has type `String`[^1]. Can be configured via environment variable `CONF_INNER_A`"
"Has type `String`. Can be configured via environment variable `CONF_INNER_A`. Refer to [configuration types](#configuration-types) for details."
.to_owned()
)
);
assert_eq!(
Configuration::get_doc_recursive(["inner"]).unwrap(),
Some(" Inner structure\n\nHas type `InnerConfiguration`[^1]. Can be configured via environment variable `CONF_INNER`\n\nHas following fields:\n\na: Has type `String`[^1]. Can be configured via environment variable `CONF_INNER_A`\n\nb: Docs from b\n\nHas type `i32`[^1]. Can be configured via environment variable `CONF_INNER_B`\n\n\n".to_owned())
Some(" Inner structure\n\nHas type `InnerConfiguration`. Can be configured via environment variable `CONF_INNER`. Refer to [configuration types](#configuration-types) for details.\n\nHas following fields:\n\na: Has type `String`. Can be configured via environment variable `CONF_INNER_A`. Refer to [configuration types](#configuration-types) for details.\n\nb: Docs from b\n\nHas type `i32`. Can be configured via environment variable `CONF_INNER_B`. Refer to [configuration types](#configuration-types) for details.\n\n\n".to_owned())
);
}

0 comments on commit c391cd2

Please sign in to comment.