Improve test so that it should work on Windows

This commit is contained in:
Patrick Meredith
2019-08-26 21:26:49 -04:00
parent 87a99bbabf
commit 738675259e
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ fn open_can_parse_bson_1() {
nu!(
output,
cwd("tests/fixtures/formats"),
"open sample.bson | nth 0 | get b | echo $it"
"open sample.bson | get root | nth 0 | get b | echo $it"
);
assert_eq!(output, "hello");
@ -39,7 +39,7 @@ fn open_can_parse_bson_2() {
nu!(
output,
cwd("tests/fixtures/formats"),
"open sample.bson | nth 6 | get b | get '$binary_subtype' | echo $it "
"open sample.bson | get root | nth 6 | get b | get '$binary_subtype' | echo $it "
);
assert_eq!(output, "function");