chore(semantic): use assert_eq! instead of assert! (crates/oxc_semantic/src/lib.rs) (#8127)

related to https://github.com/oxc-project/oxc/pull/8124
This commit is contained in:
Yuichiro Yamashita 2024-12-26 22:54:21 +09:00 committed by GitHub
parent e676fdfd83
commit eb0f57f40f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -312,7 +312,7 @@ mod tests {
let allocator = Allocator::default();
let source_type: SourceType = SourceType::default().with_typescript(true);
let semantic = get_semantic(&allocator, source, source_type);
assert!(semantic.symbols().references.len() == 1);
assert_eq!(semantic.symbols().references.len(), 1);
}
#[test]