diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-02-14 14:59:14 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-02-14 14:59:14 +0100 |
commit | 036fd6b2ea078205f625595cd481cdead307e79d (patch) | |
tree | 64c175426c0d112df52c2f53e2901b980a655586 | |
parent | 910574e04ada496d2289f4ce5756ec1e3ee9346b (diff) | |
download | rust-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.
-rw-r--r-- | tests/zotapi.rs | 2 |
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() } |