aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-02-14 14:59:14 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-02-14 14:59:14 +0100
commit036fd6b2ea078205f625595cd481cdead307e79d (patch)
tree64c175426c0d112df52c2f53e2901b980a655586 /tests
parent910574e04ada496d2289f4ce5756ec1e3ee9346b (diff)
downloadrust-zotapi-036fd6b2ea078205f625595cd481cdead307e79d.tar.gz
rust-zotapi-036fd6b2ea078205f625595cd481cdead307e79d.tar.bz2
rust-zotapi-036fd6b2ea078205f625595cd481cdead307e79d.zip
tests: Make default mock return empty array.
Most API's return an arrya, so this should be ok with most of them.
Diffstat (limited to 'tests')
-rw-r--r--tests/zotapi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zotapi.rs b/tests/zotapi.rs
index 91eecab..a405e35 100644
--- a/tests/zotapi.rs
+++ b/tests/zotapi.rs
@@ -27,7 +27,7 @@ fn default_mock(method: &str, url: &str) -> Mock {
mock_with_authorization(method, url)
.with_status(200)
.with_header("content-type", "application/json")
- .with_body("{}")
+ .with_body("[]")
.create()
}