mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
test: date_relative in notmuch search json output
expect the date_relative field for thread entries in notmuch search's json output note from Commiter: we don't have to worry about the date changing because the date in question is more than 180 days old.
This commit is contained in:
parent
a647f43643
commit
e81e3d1bdb
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ add_message "[subject]=\"json-search-subject\"" "[date]=\"Sat, 01 Jan 2000 12:00
|
||||||
output=$(notmuch search --format=json "json-search-message" | notmuch_search_sanitize)
|
output=$(notmuch search --format=json "json-search-message" | notmuch_search_sanitize)
|
||||||
test_expect_equal "$output" "[{\"thread\": \"XXX\",
|
test_expect_equal "$output" "[{\"thread\": \"XXX\",
|
||||||
\"timestamp\": 946728000,
|
\"timestamp\": 946728000,
|
||||||
|
\"date_relative\": \"2000-01-01\",
|
||||||
\"matched\": 1,
|
\"matched\": 1,
|
||||||
\"total\": 1,
|
\"total\": 1,
|
||||||
\"authors\": \"Notmuch Test Suite\",
|
\"authors\": \"Notmuch Test Suite\",
|
||||||
|
@ -41,6 +42,7 @@ add_message "[subject]=\"json-search-utf8-body-sübjéct\"" "[date]=\"Sat, 01 Ja
|
||||||
output=$(notmuch search --format=json "jsön-search-méssage" | notmuch_search_sanitize)
|
output=$(notmuch search --format=json "jsön-search-méssage" | notmuch_search_sanitize)
|
||||||
test_expect_equal "$output" "[{\"thread\": \"XXX\",
|
test_expect_equal "$output" "[{\"thread\": \"XXX\",
|
||||||
\"timestamp\": 946728000,
|
\"timestamp\": 946728000,
|
||||||
|
\"date_relative\": \"2000-01-01\",
|
||||||
\"matched\": 1,
|
\"matched\": 1,
|
||||||
\"total\": 1,
|
\"total\": 1,
|
||||||
\"authors\": \"Notmuch Test Suite\",
|
\"authors\": \"Notmuch Test Suite\",
|
||||||
|
|
Loading…
Reference in a new issue