mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-29 06:04:11 +01:00
test: remove json test for search null result, since it's being more properly tested in search-output
The test in json was inferior to the one in search-output, since it wasn't properly testing for the presence of a trailing newline.
This commit is contained in:
parent
7fdeb0fb63
commit
afdfa5674c
2 changed files with 1 additions and 7 deletions
|
@ -34,8 +34,4 @@ test_expect_equal "$output" "[{\"thread\": \"XXX\",
|
||||||
\"subject\": \"json-search-utf8-body-sübjéct\",
|
\"subject\": \"json-search-utf8-body-sübjéct\",
|
||||||
\"tags\": [\"inbox\", \"unread\"]}]"
|
\"tags\": [\"inbox\", \"unread\"]}]"
|
||||||
|
|
||||||
test_begin_subtest "Search returning no messages"
|
|
||||||
output=$(notmuch search --format=json "this string had better not match any messages" | notmuch_search_sanitize)
|
|
||||||
test_expect_equal "$output" "[]"
|
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|
|
@ -311,9 +311,7 @@ test_expect_equal_file OUTPUT EXPECTED
|
||||||
|
|
||||||
test_begin_subtest "notmuch search --format=json for non-existent message prints proper empty json"
|
test_begin_subtest "notmuch search --format=json for non-existent message prints proper empty json"
|
||||||
notmuch search --format=json "no-message-matches-this" > OUTPUT
|
notmuch search --format=json "no-message-matches-this" > OUTPUT
|
||||||
cat <<EOF >EXPECTED
|
echo "[]" >EXPECTED
|
||||||
[]
|
|
||||||
EOF
|
|
||||||
test_expect_equal_file OUTPUT EXPECTED
|
test_expect_equal_file OUTPUT EXPECTED
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|
Loading…
Reference in a new issue