Fix Go tests failing on main (#7285)

Follow-up to #7276 in which I broke tests.

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-02-02 16:35:58 +01:00 committed by GitHub
parent 998f6cf80d
commit ec9f44727e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -398,7 +398,6 @@ mod tests {
let highlight_type = grammar.highlight_id_for_name("type").unwrap();
let highlight_keyword = grammar.highlight_id_for_name("keyword").unwrap();
let highlight_number = grammar.highlight_id_for_name("number").unwrap();
let highlight_field = grammar.highlight_id_for_name("property").unwrap();
assert_eq!(
language
@ -454,7 +453,7 @@ mod tests {
Some(CodeLabel {
text: "two.Three a.Bcd".to_string(),
filter_range: 0..9,
runs: vec![(4..9, highlight_field), (12..15, highlight_type)],
runs: vec![(12..15, highlight_type)],
})
);
}