Skip to content

Commit 162eae3

Browse files
committed
test(native): assert both parameters in prototype arrow test (#1345)
1 parent cd33c02 commit 162eae3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/codegraph-core/src/extractors/javascript.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2700,6 +2700,10 @@ mod tests {
27002700
children.iter().any(|c| c.name == "a"),
27012701
"C.bar should have parameter 'a'; got: {:?}", children
27022702
);
2703+
assert!(
2704+
children.iter().any(|c| c.name == "b"),
2705+
"C.bar should have parameter 'b'; got: {:?}", children
2706+
);
27032707
}
27042708

27052709
#[test]

0 commit comments

Comments
 (0)