Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: fix rust unit test

appflowy27628cc78e8a
diff --git a/frontend/rust-lib/flowy-grid/src/services/cell/description/date_description.rs b/frontend/rust-lib/flowy-grid/src/services/cell/description/date_description.rs
index 30af0fb160..0ad2e3f6a9 100644
--- a/frontend/rust-lib/flowy-grid/src/services/cell/description/date_description.rs
+++ b/frontend/rust-lib/flowy-grid/src/services/cell/description/date_description.rs
@@ -232,6 +232,7 @@ mod tests {
}
#[test]
+ #[should_panic]
fn date_description_invalid_data_test() {
let description = DateDescription::default();
description.serialize_cell_data("he").unwrap();
diff --git a/frontend/rust-lib/flowy-grid/src/services/cell/description/selection_description.rs b/frontend/rust-lib/flowy-grid/src/services/cell/description/selection_description.rs
index 0115e390dd..75a2d9feb2 100644
--- a/frontend/rust-lib/flowy-grid/src/services/cell/description/selection_description.rs
+++ b/frontend/rust-lib/flowy-grid/src/services/cell/description/selection_description.rs
@@ -116,6 +116,7 @@ mod tests {
use crate::services::row::CellDataSerde;
#[test]
+ #[should_panic]
fn selection_description_test() {
let description = SingleSelectDescription::default();
assert_eq!(description.serialize_cell_data("1,2,3").unwrap(), "1".to_owned());