Skip to content

Commit

Permalink
src/mini_selector/extension.rs: fix test_node_snap_match
Browse files Browse the repository at this point in the history
  • Loading branch information
niklak committed Feb 26, 2025
1 parent 080bc4a commit d8bafcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mini_selector/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ mod tests {
assert!(!link_node.snap_is(r#"#link"#));
assert!(!link_node.snap_is(r#"a[target="_blank"]"#));
assert!(link_node.snap_is(r#"a[target]"#));
assert!(!link_node.snap_is(r#"a[href^="https://"][href*="examplxe"]"#));
assert!(link_node.snap_is(r#"a[href^="https://"][href*="example"[href$="/"]"#));
assert!(!link_node.snap_is(r#"a[href^="https://"][href*="examplxe"][href$="/"]"#));
assert!(link_node.snap_is(r#"a[href^="https://"][href*="example"][href$="/"]"#));

let another_sel = doc.select_single(r#"a.other-link"#);
let another_link_node = another_sel.nodes().first().unwrap();
Expand Down

0 comments on commit d8bafcf

Please sign in to comment.