add two tests to make sure clip will work with all the OS in CI

This commit is contained in:
amtoine 2023-04-01 09:08:55 +02:00
parent 1678120a72
commit 507f4bda44
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -22,3 +22,15 @@ export def test_path_add [] {
assert equal $env.PATH ["fooooo", "foo", "bar", "baz"]
}
}
export def test_clip_simple_string [] {
use std.nu clip
"foo" | clip
}
export def test_clip_structured_data [] {
use std.nu clip
open Cargo.toml | get package | clip
}