about summary refs log tree commit diff stats
path: root/crates/rocie-server/tests/units/register.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-11-28 16:30:02 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-11-28 16:30:02 +0100
commita62ab5c6dacaddb67931d7ac160bc7faaa707737 (patch)
treea35fa3540fbb89f575ab1ea72f9b23ace399e01c /crates/rocie-server/tests/units/register.rs
parentchore(crates/rocie-client): Re-generate (diff)
downloadserver-a62ab5c6dacaddb67931d7ac160bc7faaa707737.zip
feat(crates/rocie-server): Get closer to feature parity between rocie and grocy
Diffstat (limited to 'crates/rocie-server/tests/units/register.rs')
-rw-r--r--crates/rocie-server/tests/units/register.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/rocie-server/tests/units/register.rs b/crates/rocie-server/tests/units/register.rs
index 5367b55..8181c25 100644
--- a/crates/rocie-server/tests/units/register.rs
+++ b/crates/rocie-server/tests/units/register.rs
@@ -18,7 +18,7 @@ async fn test_unit_register_roundtrip() {
     let unit_property = request!(
         env,
         register_unit_property(UnitPropertyStub {
-            description: Some(Some("The total mass of a product".to_owned())),
+            description: Some("The total mass of a product".to_owned()),
             name: "Mass".to_owned()
         })
     );
@@ -26,7 +26,7 @@ async fn test_unit_register_roundtrip() {
     let id = request!(
         env,
         register_unit(UnitStub {
-            description: Some(Some("Fancy new unit".to_owned())),
+            description: Some("Fancy new unit".to_owned()),
             full_name_plural: "Grams".to_owned(),
             full_name_singular: "Gram".to_owned(),
             short_name: "g".to_owned(),
@@ -39,7 +39,7 @@ async fn test_unit_register_roundtrip() {
     assert_eq!(&unit.short_name, "g");
     assert_eq!(&unit.full_name_plural, "Grams");
     assert_eq!(&unit.full_name_singular, "Gram");
-    assert_eq!(unit.description, Some(Some("Fancy new unit".to_owned())));
+    assert_eq!(unit.description, Some("Fancy new unit".to_owned()));
     assert_eq!(unit.id, id);
 }