Update tests

This commit is contained in:
Ilya Kuznetsov 2025-03-04 13:34:05 +01:00
parent 42e3f4cb1b
commit 99b1700bc3
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
3 changed files with 5 additions and 5 deletions

View File

@ -20,12 +20,12 @@ func TestBuildMarkdownAnchors(t *testing.T) {
Title: "my_attribute",
Type: "Map",
Description: "Desc with link",
Link: "some_field.<name>.my_attribute",
Link: "some_field._name_.my_attribute",
},
},
},
{
Title: "some_field.<name>.my_attribute",
Title: "some_field._name_.my_attribute",
TopLevel: false,
Type: "Boolean",
Description: "Another description",

View File

@ -93,11 +93,11 @@ func TestBuildNodes_ChildExpansion(t *testing.T) {
TopLevel: true,
Type: "Map",
ObjectKeyAttributes: []attributeNode{
{Title: "mapSub", Type: "Map", Link: "myMap.<name>.mapSub"},
{Title: "mapSub", Type: "Map", Link: "myMap._name_.mapSub"},
},
},
{
Title: "myMap.<name>.mapSub",
Title: "myMap._name_.mapSub",
Type: "Map",
Attributes: []attributeNode{
{Title: "deepSub", Type: "Boolean"},

View File

@ -21,7 +21,7 @@ This is a description
:::
### some_field.\<name\>.my_attribute
### some_field._name_.my_attribute
**`Type: Boolean`**