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.

test: fix includeTime-related tests

Richard Shiue05975e55f04d
diff --git a/frontend/rust-lib/flowy-grid/src/services/field/type_options/date_type_option/date_tests.rs b/frontend/rust-lib/flowy-grid/src/services/field/type_options/date_type_option/date_tests.rs
index ea5a33871a..d8f034fa3d 100644
--- a/frontend/rust-lib/flowy-grid/src/services/field/type_options/date_type_option/date_tests.rs
+++ b/frontend/rust-lib/flowy-grid/src/services/field/type_options/date_type_option/date_tests.rs
@@ -141,7 +141,9 @@ mod tests {
.unwrap();
if type_option.include_time {
- format!("{}{}", decoded_data.date, decoded_data.time)
+ format!("{} {}", decoded_data.date, decoded_data.time)
+ .trim_end()
+ .to_owned()
} else {
decoded_data.date
}