refactor(feat): declarative effect registry for verge and clash patches

This commit is contained in:
Tunglies
2026-09-30 17:42:39 +08:00
committed by GitHub
parent dbf3183b3f
commit be6a6caf23
10 changed files with 462 additions and 308 deletions
+3 -2
View File
@@ -322,7 +322,7 @@ mod wire_tests {
use super::*;
#[test]
fn frontend_event_wire_contract() {
fn frontend_event_wire_contract() -> Result<(), serde_json::Error> {
let uid = String::from("profile");
let events = [
(
@@ -387,7 +387,8 @@ mod wire_tests {
for (event, name, payload) in events {
let (actual_name, actual_payload) = NotificationSystem::serialize_event(event);
assert_eq!(actual_name, name);
assert_eq!(actual_payload.unwrap(), payload);
assert_eq!(actual_payload?, payload);
}
Ok(())
}
}