diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-02-13 20:43:34 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-02-13 20:43:34 +0300 |
commit | 6f9839c73c0d5068ff4505a2efddecf68fdb3bc3 (patch) | |
tree | ed158e0cd3c402cbc0f0dd6ce99d544ae634ca74 /test/web/common_api/common_api_utils_test.exs | |
parent | da44ee5b0f6207666442b956ab2cdef3e5e9b49b (diff) | |
parent | 18a56410b821f1583d216dc55b9bd7b4d3a9c327 (diff) | |
download | pleroma-6f9839c73c0d5068ff4505a2efddecf68fdb3bc3.tar.gz |
Merge branch 'develop' into issue/1276
Diffstat (limited to 'test/web/common_api/common_api_utils_test.exs')
-rw-r--r-- | test/web/common_api/common_api_utils_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/common_api/common_api_utils_test.exs b/test/web/common_api/common_api_utils_test.exs index 4b761e039..848300ef3 100644 --- a/test/web/common_api/common_api_utils_test.exs +++ b/test/web/common_api/common_api_utils_test.exs @@ -575,11 +575,11 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do end describe "maybe_add_attachments/3" do - test "returns parsed results when no_links is true" do + test "returns parsed results when attachment_links is false" do assert Utils.maybe_add_attachments( {"test", [], ["tags"]}, [], - true + false ) == {"test", [], ["tags"]} end @@ -589,7 +589,7 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do assert Utils.maybe_add_attachments( {"test", [], ["tags"]}, [attachment], - false + true ) == { "test<br><a href=\"SakuraPM.png\" class='attachment'>SakuraPM.png</a>", [], |