From 99b1700bc398529809ea5fb0a9c84b0c42b4b89b Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Tue, 4 Mar 2025 13:34:05 +0100 Subject: [PATCH] Update tests --- bundle/docsgen/markdown_test.go | 4 ++-- bundle/docsgen/nodes_test.go | 4 ++-- bundle/docsgen/testdata/anchors.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bundle/docsgen/markdown_test.go b/bundle/docsgen/markdown_test.go index d4f32230e..5463eeef3 100644 --- a/bundle/docsgen/markdown_test.go +++ b/bundle/docsgen/markdown_test.go @@ -20,12 +20,12 @@ func TestBuildMarkdownAnchors(t *testing.T) { Title: "my_attribute", Type: "Map", Description: "Desc with link", - Link: "some_field..my_attribute", + Link: "some_field._name_.my_attribute", }, }, }, { - Title: "some_field..my_attribute", + Title: "some_field._name_.my_attribute", TopLevel: false, Type: "Boolean", Description: "Another description", diff --git a/bundle/docsgen/nodes_test.go b/bundle/docsgen/nodes_test.go index bdb2ce9db..e7f77361a 100644 --- a/bundle/docsgen/nodes_test.go +++ b/bundle/docsgen/nodes_test.go @@ -93,11 +93,11 @@ func TestBuildNodes_ChildExpansion(t *testing.T) { TopLevel: true, Type: "Map", ObjectKeyAttributes: []attributeNode{ - {Title: "mapSub", Type: "Map", Link: "myMap..mapSub"}, + {Title: "mapSub", Type: "Map", Link: "myMap._name_.mapSub"}, }, }, { - Title: "myMap..mapSub", + Title: "myMap._name_.mapSub", Type: "Map", Attributes: []attributeNode{ {Title: "deepSub", Type: "Boolean"}, diff --git a/bundle/docsgen/testdata/anchors.md b/bundle/docsgen/testdata/anchors.md index 872649d7c..43f79c975 100644 --- a/bundle/docsgen/testdata/anchors.md +++ b/bundle/docsgen/testdata/anchors.md @@ -21,7 +21,7 @@ This is a description ::: -### some_field.\.my_attribute +### some_field._name_.my_attribute **`Type: Boolean`**