little fixes and typos fix

This commit is contained in:
Alexander 2019-12-25 15:31:51 +03:00 committed by Alexander Strizhakov
commit 0b02040327
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
5 changed files with 70 additions and 6 deletions

View file

@ -85,6 +85,12 @@ defmodule Pleroma.Docs.GeneratorTest do
key: "application/xml",
type: {:list, :string},
suggestions: ["xml"]
},
%{
key: :versions,
type: {:list, :atom},
description: "List of TLS version to use",
suggestions: [:tlsv1, ":tlsv1.1", ":tlsv1.2"]
}
]
},
@ -208,6 +214,12 @@ defmodule Pleroma.Docs.GeneratorTest do
assert child[:key] == "application/xml"
end
test "suggestion for tls versions" do
[%{children: children} | _] = Generator.convert_to_strings(@descriptions)
child = Enum.at(children, 8)
assert child[:suggestions] == [":tlsv1", ":tlsv1.1", ":tlsv1.2"]
end
test "subgroup with module name" do
[%{children: children} | _] = Generator.convert_to_strings(@descriptions)