error fixes
This commit is contained in:
@@ -813,11 +813,8 @@ mod tests {
|
||||
let formats = item.formats.as_ref().expect("formats present");
|
||||
assert_eq!(formats.len(), 1);
|
||||
assert_eq!(formats[0].url, "https://coomer.st/data/abc/clip.mp4");
|
||||
let headers = formats[0]
|
||||
.http_headers
|
||||
.as_ref()
|
||||
.expect("http_headers present");
|
||||
assert_eq!(headers.get("Referer").map(String::as_str), Some(REFERER));
|
||||
let headers = formats[0].http_headers_pairs();
|
||||
assert!(headers.iter().any(|(k, v)| k == "Referer" && v == REFERER));
|
||||
assert_eq!(item.uploadedAt, Some(1735787045));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user