Skip to content

Commit

Permalink
test: fix doc_fields tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fahchen committed Dec 9, 2024
1 parent 192e346 commit 19cc152
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions test/guides/plugins/doc_fields_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,20 @@ defmodule Guides.Plugins.DocFieldsTest do
end

expected = """
This is a user struct.
@type t(age) :: %User{age: age | nil, name: String.t() | nil}
This is a user struct.
## Parameters
| Name | Description |
|------|-------------|
|`:age` | The age parameter.|
Name | Description
:age | The age parameter.
## Fields
| Name | Type | Description |
|------|------|-------------|
|`:name` | `String.t() | nil` | The name of the user.|
|`:age` | `age | nil` | The age of the user.|
Name | Type | Description
:name | String.t() | nil | The name of the user.
:age | age | nil | The age of the user.
"""

assert expected === doc
Expand Down

0 comments on commit 19cc152

Please sign in to comment.