Clean up tests and unused documentation code (#5273)

* Delete unused documentation code+test

* Fix up test to account for new select behavior
This commit is contained in:
Reilly Wood
2022-04-21 04:13:58 -07:00
committed by GitHub
parent 7e730e28bb
commit a26272b44b
7 changed files with 19 additions and 199 deletions

View File

@ -14,20 +14,3 @@ fn help_commands_length() {
let is_positive = output_int.is_positive();
assert!(is_positive);
}
// FIXME: jt: needs more work
#[ignore]
#[test]
fn help_generate_docs_length() {
let actual = nu!(
cwd: ".", pipeline(
r#"
help generate_docs | flatten | length
"#
));
let output = actual.out;
let output_int: i32 = output.parse().unwrap();
let is_positive = output_int.is_positive();
assert!(is_positive);
}

View File

@ -66,10 +66,8 @@ fn complex_nested_columns() {
})
}
// FIXME: jt: needs more work
#[ignore]
#[test]
fn allows_if_given_unknown_column_name_is_missing() {
fn fails_if_given_unknown_column_name() {
let actual = nu!(cwd: ".", pipeline(
r#"
echo [
@ -84,7 +82,7 @@ fn allows_if_given_unknown_column_name_is_missing() {
"#
));
assert_eq!(actual.out, "3");
assert!(actual.err.contains("nu::shell::name_not_found"));
}
#[test]