Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f2921d0

Browse files
committedMar 12, 2025
chore: pass tests
1 parent 33fb84d commit f2921d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎notary/src/proxy.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use axum::{
66
};
77
use reqwest::{Request, Response};
88
use serde::Deserialize;
9-
use serde_json::Value;
9+
use serde_json::{json, Value};
1010
use tracing::{debug, info};
1111
use uuid::Uuid;
1212
use web_prover_core::{
@@ -177,7 +177,7 @@ fn test_get_value_from_json_path() {
177177
}
178178
});
179179
let path = vec![JsonKey::String("foo".to_string()), JsonKey::String("bar".to_string())];
180-
let value = get_value_from_json_path(&json_body, &path).unwrap();
180+
let value = get_value_from_json_path(&json_body, &path);
181181
assert_eq!(value, "baz");
182182
}
183183

@@ -187,7 +187,7 @@ fn test_get_value_from_json_path_num() {
187187
"foo": [1, 2, 3]
188188
});
189189
let path = vec![JsonKey::String("foo".to_string()), JsonKey::Num(1)];
190-
let value = get_value_from_json_path(&json_body, &path).unwrap();
190+
let value = get_value_from_json_path(&json_body, &path);
191191
assert_eq!(value, 2);
192192
}
193193

@@ -199,7 +199,7 @@ fn test_get_value_from_json_path_bool() {
199199
}
200200
});
201201
let path = vec![JsonKey::String("foo".to_string()), JsonKey::String("bar".to_string())];
202-
let value = get_value_from_json_path(&json_body, &path).unwrap();
202+
let value = get_value_from_json_path(&json_body, &path);
203203
assert_eq!(value, true);
204204
}
205205

@@ -211,6 +211,6 @@ fn test_get_value_from_json_path_null() {
211211
}
212212
});
213213
let path = vec![JsonKey::String("foo".to_string()), JsonKey::String("bar".to_string())];
214-
let value = get_value_from_json_path(&json_body, &path).unwrap();
214+
let value = get_value_from_json_path(&json_body, &path);
215215
assert_eq!(value, Value::Null);
216216
}

0 commit comments

Comments
 (0)