diff options
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 3043d2be6..e9f5bbb88 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -657,6 +657,10 @@ defmodule HttpRequestMock do {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/rich_media/ogp.html")}} end + def get("http://example.com/malformed", _, _, _) do + {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/rich_media/malformed-data.html")}} + end + def get("http://example.com/empty", _, _, _) do {:ok, %Tesla.Env{status: 200, body: "hello"}} end |