1 2 3 4 5 6 7
use wasm_bindgen_test::*; #[wasm_bindgen_test] fn beacon_can_send() { let beacon = localghost::net::Beacon::new("https://example.com".to_string()); beacon.send(&mut b"hello world".to_owned()); }