Skip to content

Commit 19cc152

Browse files
committed
test: fix doc_fields tests
1 parent 192e346 commit 19cc152

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

test/guides/plugins/doc_fields_test.exs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,20 @@ defmodule Guides.Plugins.DocFieldsTest do
1515
end
1616

1717
expected = """
18-
This is a user struct.
18+
@type t(age) :: %User{age: age | nil, name: String.t() | nil}
1919
20+
This is a user struct.
2021
2122
## Parameters
2223
23-
| Name | Description |
24-
|------|-------------|
25-
|`:age` | The age parameter.|
26-
24+
Name | Description
25+
:age | The age parameter.
2726
2827
## Fields
2928
30-
| Name | Type | Description |
31-
|------|------|-------------|
32-
|`:name` | `String.t() | nil` | The name of the user.|
33-
|`:age` | `age | nil` | The age of the user.|
34-
29+
Name | Type | Description
30+
:name | String.t() | nil | The name of the user.
31+
:age | age | nil | The age of the user.
3532
"""
3633

3734
assert expected === doc

0 commit comments

Comments
 (0)