From 036fd6b2ea078205f625595cd481cdead307e79d Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 14 Feb 2020 14:59:14 +0100 Subject: tests: Make default mock return empty array. Most API's return an arrya, so this should be ok with most of them. --- tests/zotapi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } -- cgit v1.2.3