Преглед на файлове

test: fix includeTime-related tests

Richard Shiue преди 2 години
родител
ревизия
05975e55f0
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      frontend/rust-lib/flowy-grid/src/services/field/type_options/date_type_option/date_tests.rs

+ 3 - 1
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
         }