mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
20 lines
No EOL
365 B
Rust
20 lines
No EOL
365 B
Rust
mod helpers;
|
|
|
|
use helpers::in_directory as cwd;
|
|
|
|
use clipboard::{ClipboardProvider, ClipboardContext};
|
|
|
|
#[test]
|
|
fn clip() {
|
|
|
|
let mut ctx: ClipboardContext = ClipboardProvider::new().unwrap();
|
|
|
|
nu!(
|
|
_output,
|
|
cwd("tests/fixtures/formats"),
|
|
"open caco3_plastics.csv --raw | lines | clip"
|
|
);
|
|
|
|
|
|
assert!(ctx.get_contents().is_ok());
|
|
} |