use chorus::types::RegisterSchema; // PRETTYFYME: Move common wasm setup to common.rs #[cfg(target_arch = "wasm32")] use wasm_bindgen_test::*; #[cfg(target_arch = "wasm32")] wasm_bindgen_test_configure!(run_in_browser); mod common; #[tokio::test] async fn test_registration() { let bundle = common::setup().await; let reg = RegisterSchema { username: "Hiiii".into(), date_of_birth: Some("2000-01-01".to_string()), consent: true, ..Default::default() }; bundle.instance.clone().register_account(reg).await.unwrap(); common::teardown(bundle).await; } #[cfg(target_arch = "wasm32")] #[wasm_bindgen_test] async fn test_registration_wasm() { test_registration() }