assert_eq!(response.status(), StatusCode::OK); assert_eq!( response.headers().get("content-type").unwrap(), "application/json" ); assert_eq!( response.text().unwrap(), format!("\"{}\"", hex::encode(encoded_metadata)) ); } #[test] fn inscriptions_page() { let rpc_server = test_bitcoincore_rpc::spawn(); create_wallet(&rpc_server); let (inscription, _) = inscribe(&rpc_server); TestServer::spawn_with_args(&rpc_server, &[]).assert_response_regex( "/inscriptions", format!( ".*

All Inscriptions

.*
.*", ), ); } #[test] fn inscriptions_page_is_sorted() { let rpc_server = test_bitcoincore_rpc::spawn(); create_wallet(&rpc_server); let mut regex = String::new(); for _ in 0..8 { let (inscription, _) = inscribe(&rpc_server); regex.insert_str(0, &format!(".*.*")); } TestServer::spawn_with_args(&rpc_server, &[]).assert_response_regex("/inscriptions", ®ex);