diff options
author | Claudio Maradonna <penguyman@stronzi.org> | 2022-07-08 10:06:46 +0200 |
---|---|---|
committer | Claudio Maradonna <penguyman@stronzi.org> | 2022-07-08 10:06:46 +0200 |
commit | 21d9091f5e422493ff69fe59db9c965e0d511369 (patch) | |
tree | 1b6c4a41cd1d1c462bc53309d0721231d76839d7 | |
parent | 5e097eb91def0efd3cd0008309fd524fcfd88e15 (diff) | |
download | pleroma-21d9091f5e422493ff69fe59db9c965e0d511369.tar.gz pleroma-21d9091f5e422493ff69fe59db9c965e0d511369.zip |
ipfs: replacing single quotes with double quotes
-rw-r--r-- | test/pleroma/uploaders/ipfs_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pleroma/uploaders/ipfs_test.exs b/test/pleroma/uploaders/ipfs_test.exs index 9df3f239c..853d185e5 100644 --- a/test/pleroma/uploaders/ipfs_test.exs +++ b/test/pleroma/uploaders/ipfs_test.exs @@ -100,7 +100,7 @@ defmodule Pleroma.Uploaders.IPFSTest do test "returns error if JSON decode fails", %{file_upload: file_upload} do with_mock Pleroma.HTTP, [], post: fn "http://localhost:5001/api/v0/add", mp, [], params: ["cid-version": "1"] -> - {:ok, %Tesla.Env{status: 200, body: 'invalid'}} + {:ok, %Tesla.Env{status: 200, body: "invalid"}} end do assert capture_log(fn -> assert IPFS.put_file(file_upload) == {:error, "JSON decode failed"} @@ -112,7 +112,7 @@ defmodule Pleroma.Uploaders.IPFSTest do test "returns error if JSON body doesn't contain Hash key", %{file_upload: file_upload} do with_mock Pleroma.HTTP, [], post: fn "http://localhost:5001/api/v0/add", mp, [], params: ["cid-version": "1"] -> - {:ok, %Tesla.Env{status: 200, body: '{"key": "value"}'}} + {:ok, %Tesla.Env{status: 200, body: "{\"key\": \"value\"}"}} end do assert IPFS.put_file(file_upload) == {:error, "JSON doesn't contain Hash key"} end |