X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fjson;h=7c81856321326b0969a5d61d3e20b23b2760e7f8;hb=b596fbbcd30c82a6487231f01ba1e4d68bd98275;hp=7fe2a27a8d6479bfd32c0d03b1c68b23ff7bf26f;hpb=44ea57a0d10ddab514abea319c4d25ec4e36b51e;p=notmuch diff --git a/test/json b/test/json index 7fe2a27a..7c818563 100755 --- a/test/json +++ b/test/json @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description="--format=json output" . ./test-lib.sh @@ -39,4 +39,8 @@ test_expect_equal "$output" "[{\"thread\": \"XXX\", \"subject\": \"json-search-utf8-body-sübjéct\", \"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