Skip to content

Commit a6402ec

Browse files
committed
chore: pass tests
1 parent 8b4d423 commit a6402ec

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

notary/src/proxy.rs

Lines changed: 5 additions & 5 deletions
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::{
@@ -172,7 +172,7 @@ fn test_get_value_from_json_path() {
172172
}
173173
});
174174
let path = vec![JsonKey::String("foo".to_string()), JsonKey::String("bar".to_string())];
175-
let value = get_value_from_json_path(&json_body, &path).unwrap();
175+
let value = get_value_from_json_path(&json_body, &path);
176176
assert_eq!(value, "baz");
177177
}
178178

@@ -182,7 +182,7 @@ fn test_get_value_from_json_path_num() {
182182
"foo": [1, 2, 3]
183183
});
184184
let path = vec![JsonKey::String("foo".to_string()), JsonKey::Num(1)];
185-
let value = get_value_from_json_path(&json_body, &path).unwrap();
185+
let value = get_value_from_json_path(&json_body, &path);
186186
assert_eq!(value, 2);
187187
}
188188

@@ -194,7 +194,7 @@ fn test_get_value_from_json_path_bool() {
194194
}
195195
});
196196
let path = vec![JsonKey::String("foo".to_string()), JsonKey::String("bar".to_string())];
197-
let value = get_value_from_json_path(&json_body, &path).unwrap();
197+
let value = get_value_from_json_path(&json_body, &path);
198198
assert_eq!(value, true);
199199
}
200200

@@ -206,6 +206,6 @@ fn test_get_value_from_json_path_null() {
206206
}
207207
});
208208
let path = vec![JsonKey::String("foo".to_string()), JsonKey::String("bar".to_string())];
209-
let value = get_value_from_json_path(&json_body, &path).unwrap();
209+
let value = get_value_from_json_path(&json_body, &path);
210210
assert_eq!(value, Value::Null);
211211
}

0 commit comments

Comments
 (0)