FIX: Adds tests

This commit is contained in:
Nicolás Hatcher
2024-02-14 10:11:15 +01:00
parent 1ee5c6a151
commit 9e548de2aa
3 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
#![allow(clippy::unwrap_used)]
use crate::{test::util::new_empty_model, types::SheetInfo};
#[test]
fn workbook_worksheets_info() {
let model = new_empty_model();
let sheets_info = model.workbook.get_worksheets_info();
assert_eq!(
sheets_info[0],
SheetInfo {
name: "Sheet1".to_string(),
state: "visible".to_string(),
sheet_id: 1,
color: None
}
);
}