feat(add): prevent adding a file without changes
This commit is contained in:
@@ -15,13 +15,13 @@ pub fn status_should_be_empty(client: &mut ClientTest) {
|
||||
let (staged, not_staged) = client.get_status();
|
||||
if staged.len() != 0 {
|
||||
eprintln!("id: {}", client.test_id.clone());
|
||||
eprintln!("Staged should be empty but has '{}'", staged.len());
|
||||
eprintln!("Staged should be empty but has '{}' line(s)", staged.len());
|
||||
assert!(staged.len() == 0);
|
||||
}
|
||||
|
||||
if staged.len() != 0 {
|
||||
eprintln!("id: {}", client.test_id.clone());
|
||||
eprintln!("Not Staged should be empty but has '{}'", not_staged.len());
|
||||
eprintln!("Not Staged should be empty but has '{}' line(s)", not_staged.len());
|
||||
assert!(not_staged.len() == 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user