mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-06 00:39:40 -06:00
/bats/arg-parsing.bats: Add skipped test for checkout panic
This commit is contained in:
@@ -45,3 +45,13 @@ teardown() {
|
||||
skip "Can't chain modal arguments"
|
||||
dolt table import -fc test `batshelper 1pk5col-ints.csv`
|
||||
}
|
||||
|
||||
@test "dolt does not panic and returns error when empty string used with checkout" {
|
||||
run dolt checkout ""
|
||||
skip "Panics when attempting to checkout empty string" [[ "$output" =~ "error: cannot checkout empty string" ]] || false
|
||||
[ $status -eq 2 ]
|
||||
|
||||
run dolt checkout -b ""
|
||||
[[ "$output" =~ "error: cannot checkout empty string" ]] || false
|
||||
[ $status -eq 2 ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user