fixed some more tests (#4607)

This commit is contained in:
Darren Schroeder
2022-02-22 10:32:29 -06:00
committed by GitHub
parent 25712760ba
commit f507613b38
11 changed files with 18 additions and 60 deletions

View File

@ -2,8 +2,6 @@ use nu_test_support::nu;
use nu_test_support::playground::Playground;
use std::fs;
// FIXME: jt: needs more work
#[ignore]
#[test]
fn def_with_comment() {
Playground::setup("def_with_comment", |dirs, _| {
@ -14,7 +12,7 @@ def e [arg] {echo $arg}
fs::write(dirs.root().join("def_test"), data).expect("Unable to write file");
let actual = nu!(
cwd: dirs.root(),
"source def_test; help e | to json"
"source def_test; help e | to json -r"
);
assert!(actual.out.contains("My echo\\n\\n"));