Skip to content

Instantly share code, notes, and snippets.

@amodm
Created August 22, 2023 04:28
Show Gist options
  • Save amodm/720ca7af19970efcdc298ce7ce09c5ba to your computer and use it in GitHub Desktop.
Save amodm/720ca7af19970efcdc298ce7ce09c5ba to your computer and use it in GitHub Desktop.
test_75.rs
/// created for https://github.com/amodm/webbrowser-rs/issues/75
///
/// Steps:
/// 1. Copy this file as `tests/test_75.rs
/// 2. Run: `RUST_LOG=webbrowser=trace cargo test --test test_75 -- --nocapture`
mod tests {
use webbrowser;
#[test]
fn test_open_default() {
_ = env_logger::try_init();
_ = webbrowser::open("https://vercel.com/turborepo/token?redirect_uri=http://127.0.0.1:9789");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment