mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
style: rustfmt doctor protocol-version test asserts
cargo fmt --check failed on two long assert lines in PR CI. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -606,8 +606,15 @@ mod m2_tests {
|
|||||||
let check = check_browsers_protocol_compatible(Some(&status));
|
let check = check_browsers_protocol_compatible(Some(&status));
|
||||||
assert_eq!(check.status, CheckStatus::Ok);
|
assert_eq!(check.status, CheckStatus::Ok);
|
||||||
assert!(check.detail.contains("alpha"));
|
assert!(check.detail.contains("alpha"));
|
||||||
assert!(check.detail.contains("still usable — continue, and upgrade soon"));
|
assert!(
|
||||||
assert!(check.hint.is_none(), "a protocol-version note must not hint to stop");
|
check
|
||||||
|
.detail
|
||||||
|
.contains("still usable — continue, and upgrade soon")
|
||||||
|
);
|
||||||
|
assert!(
|
||||||
|
check.hint.is_none(),
|
||||||
|
"a protocol-version note must not hint to stop"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user