aboutsummaryrefslogtreecommitdiffstats
path: root/crates/rocie-server/tests/units/register.rs
diff options
context:
space:
mode:
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);
}