Skip to content

Commit 4b05286

Browse files
committed
mix format
1 parent 1697b0d commit 4b05286

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed

lib/ex_doc/language.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ defmodule ExDoc.Language do
6464
%{
6565
line: non_neg_integer() | nil,
6666
specs: [spec_ast()],
67-
doc_fallback: (() -> ExDoc.DocAST.t()) | nil,
67+
doc_fallback: (-> ExDoc.DocAST.t()) | nil,
6868
extra_annotations: [String.t()]
6969
}
7070
| :skip

test/ex_doc/cli_test.exs

+36-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,46 @@ defmodule ExDoc.CLITest do
1717

1818
test "minimum command-line options" do
1919
{[html, epub], _io} = run(["ExDoc", "1.2.3", @ebin])
20-
assert html == {"ExDoc", "1.2.3", [formatter: "html", formatters: ["html", "epub"], apps: [:ex_doc], source_beam: @ebin]}
21-
assert epub == {"ExDoc", "1.2.3", [formatter: "epub", formatters: ["html", "epub"], apps: [:ex_doc], source_beam: @ebin]}
20+
21+
assert html ==
22+
{"ExDoc", "1.2.3",
23+
[
24+
formatter: "html",
25+
formatters: ["html", "epub"],
26+
apps: [:ex_doc],
27+
source_beam: @ebin
28+
]}
29+
30+
assert epub ==
31+
{"ExDoc", "1.2.3",
32+
[
33+
formatter: "epub",
34+
formatters: ["html", "epub"],
35+
apps: [:ex_doc],
36+
source_beam: @ebin
37+
]}
2238
end
2339

2440
test "formatter option" do
2541
{[epub, html], _io} = run(["ExDoc", "1.2.3", @ebin, "-f", "epub", "-f", "html"])
26-
assert epub == {"ExDoc", "1.2.3", [formatter: "epub", formatters: ["epub", "html"], apps: [:ex_doc], source_beam: @ebin]}
27-
assert html == {"ExDoc", "1.2.3", [formatter: "html", formatters: ["epub", "html"], apps: [:ex_doc], source_beam: @ebin]}
42+
43+
assert epub ==
44+
{"ExDoc", "1.2.3",
45+
[
46+
formatter: "epub",
47+
formatters: ["epub", "html"],
48+
apps: [:ex_doc],
49+
source_beam: @ebin
50+
]}
51+
52+
assert html ==
53+
{"ExDoc", "1.2.3",
54+
[
55+
formatter: "html",
56+
formatters: ["epub", "html"],
57+
apps: [:ex_doc],
58+
source_beam: @ebin
59+
]}
2860
end
2961

3062
test "version" do

0 commit comments

Comments
 (0)