mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-06 01:27:24 +03:00
type assert
This commit is contained in:
parent
cba2d2fc4f
commit
8a19c3550e
@ -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(_))
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user