diff options
author | David Bremner <david@tethera.net> | 2013-12-08 16:39:05 +0800 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2013-12-09 21:20:15 +0800 |
commit | 20f78709faae8fb36c6ebbf81ecfc856a5dcd3c7 (patch) | |
tree | e61354883f1a5a575b58fcc29dccd1cee83c6747 /test/missing-headers | |
parent | bb390f89a1599f4767fbf7fc7cb1f01aba22b9ae (diff) |
test: pass expected output through json_sanitize in 2 places
This makes the tests more robust against changes in the
sanitization rules.
Diffstat (limited to 'test/missing-headers')
-rwxr-xr-x | test/missing-headers | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/missing-headers b/test/missing-headers index 43e861bc..cb38301c 100755 --- a/test/missing-headers +++ b/test/missing-headers @@ -95,7 +95,7 @@ Body test_begin_subtest "Show: json" output=$(notmuch show --format=json '*' | notmuch_json_show_sanitize) -test_expect_equal_json "$output" ' +expected=$(notmuch_json_show_sanitize <<EOF [ [ [ @@ -156,7 +156,9 @@ test_expect_equal_json "$output" ' [] ] ] -]' - +] +EOF +) +test_expect_equal_json "$output" "$expected" test_done |