🦊 Exit status 1 on cancelled selection (#20)
When making no selection, i.e. cancelling during the selection process the program will return status code 1, whereas before it would carry the same return code as when making an emoji selection. Fixes #20.
This commit is contained in:
parent
32fc9f45dd
commit
71d5dc455d
3 changed files with 9 additions and 2 deletions
|
|
@ -64,6 +64,11 @@ typing result"
|
|||
assert_output "my clipping"
|
||||
}
|
||||
|
||||
@test "Returns status code 1 on picker status code 1" {
|
||||
BEMOJI_PICKER_CMD="return 1" run bemoji -e 3>&-
|
||||
assert_failure 1
|
||||
}
|
||||
|
||||
@test "Prints output with newline by default" {
|
||||
bats_require_minimum_version 1.5.0
|
||||
BEMOJI_PICKER_CMD="echo heart" run --keep-empty-lines -- bemoji -e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue