test: add test for catalog new
This commit is contained in:
@@ -238,7 +238,10 @@ mod tests {
|
||||
#[test]
|
||||
fn new_should_create_catalog_with_path_and_empty_items() {
|
||||
// Should create a new Catalog with the given path and an empty 'items' map.
|
||||
todo!();
|
||||
let path = "test.db";
|
||||
let catalog = Catalog::new(path);
|
||||
assert_eq!(catalog.path, path);
|
||||
assert!(catalog.items.is_empty());
|
||||
}
|
||||
|
||||
// ## 'init()'
|
||||
|
||||
Reference in New Issue
Block a user