Lines
0 %
Functions
Branches
100 %
use wasm_bindgen_test::*;
wasm_bindgen_test_configure!(run_in_browser);
#[wasm_bindgen_test]
fn test_basic_assertion() {
assert_eq!(1 + 1, 2);
}
fn test_web_sys_window() {
let window = web_sys::window();
assert!(window.is_some());
fn test_document_access() {
let window = web_sys::window().unwrap();
let document = window.document().unwrap();
assert!(document.body().is_some());