mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
add setup_port unit test.
This commit is contained in:
@@ -247,6 +247,18 @@ mod test {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "embedded-server")]
|
||||
#[test]
|
||||
fn check_setup_port() {
|
||||
let config = init_config();
|
||||
|
||||
let res = super::setup_port(config);
|
||||
match res {
|
||||
Some((_s, _b)) => assert!(true),
|
||||
_ => assert!(false),
|
||||
}
|
||||
}
|
||||
|
||||
proptest! {
|
||||
#[cfg(feature = "embedded-server")]
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user