mirror of
https://github.com/nushell/nushell
synced 2024-11-10 23:24:14 +00:00
Fix unused import warning on Linux+Mac (#6281)
This commit is contained in:
parent
4b89c5f900
commit
0e5886ace1
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
use nu_test_support::fs::Stub::{EmptyFile, FileWithContent};
|
||||
use nu_test_support::fs::Stub::EmptyFile;
|
||||
use nu_test_support::playground::Playground;
|
||||
use nu_test_support::{nu, pipeline};
|
||||
|
||||
|
@ -265,6 +265,7 @@ fn single_quote_does_not_expand_path_glob_windows() {
|
|||
#[cfg(windows)]
|
||||
#[test]
|
||||
fn can_run_batch_files() {
|
||||
use nu_test_support::fs::Stub::FileWithContent;
|
||||
Playground::setup("run a Windows batch file", |dirs, sandbox| {
|
||||
sandbox.with_files(vec![FileWithContent(
|
||||
"foo.cmd",
|
||||
|
@ -282,6 +283,7 @@ fn can_run_batch_files() {
|
|||
#[cfg(windows)]
|
||||
#[test]
|
||||
fn can_run_batch_files_without_cmd_extension() {
|
||||
use nu_test_support::fs::Stub::FileWithContent;
|
||||
Playground::setup(
|
||||
"run a Windows batch file without specifying the extension",
|
||||
|dirs, sandbox| {
|
||||
|
@ -302,6 +304,7 @@ fn can_run_batch_files_without_cmd_extension() {
|
|||
#[cfg(windows)]
|
||||
#[test]
|
||||
fn can_run_batch_files_without_bat_extension() {
|
||||
use nu_test_support::fs::Stub::FileWithContent;
|
||||
Playground::setup(
|
||||
"run a Windows batch file without specifying the extension",
|
||||
|dirs, sandbox| {
|
||||
|
|
Loading…
Reference in a new issue