add test fixtures
This commit is contained in:
parent
b3e477ed18
commit
5db7b4ada1
42 changed files with 6332 additions and 0 deletions
12
examples/test/src/clipboard.rs
Normal file
12
examples/test/src/clipboard.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
use anyhow::ensure;
|
||||
use tauri_sys::clipboard;
|
||||
|
||||
pub async fn test() -> anyhow::Result<()> {
|
||||
clipboard::write_text("foobar").await;
|
||||
|
||||
let text = clipboard::read_text().await;
|
||||
|
||||
ensure!(text == Some("foobar".to_string()));
|
||||
|
||||
Ok(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue