type assert

This commit is contained in:
Nikita Galaiko 2023-10-12 15:45:29 +02:00 committed by GitButler
parent cba2d2fc4f
commit 8a19c3550e

View File

@ -63,12 +63,13 @@ mod set_base_branch {
..
} = Test::default();
assert!(controller
.set_base_branch(
assert!(matches!(
controller.set_base_branch(
&project_id,
&git::RemoteBranchName::from_str("refs/remotes/origin/missing").unwrap(),
)
.is_err());
),
Err(ControllerError::Other(_))
));
}
}
}