diff options
author | Alexander <alex.strizhakov@gmail.com> | 2019-12-25 15:31:51 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-01-10 15:52:02 +0300 |
commit | 0b020403276519da84dce51053240ac6637eb1b3 (patch) | |
tree | 3910b3d5d3802cd04caf90636358525579a460e3 /test/docs/generator_test.exs | |
parent | 9c1f3bfeffa7e40d319d931c975b948f33800c40 (diff) | |
download | pleroma-0b020403276519da84dce51053240ac6637eb1b3.tar.gz |
little fixes and typos fix
Diffstat (limited to 'test/docs/generator_test.exs')
-rw-r--r-- | test/docs/generator_test.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/docs/generator_test.exs b/test/docs/generator_test.exs index 0106809c2..9c9f4357b 100644 --- a/test/docs/generator_test.exs +++ b/test/docs/generator_test.exs @@ -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) |