test(domain): assert IllegalTransition Display message

This commit is contained in:
2026-06-02 13:14:37 +02:00
parent 59400062ae
commit 5e2ebbc8d9
+5
View File
@@ -180,6 +180,11 @@ mod tests {
to: Draft
})
);
// the Display message is the user-visible surface of the error
assert_eq!(
Draft.transition_to(Public).unwrap_err().to_string(),
"illegal visibility transition: draft -> public"
);
}
#[test]