From b522459430b52290450dc9f83ab1bd4208304365 Mon Sep 17 00:00:00 2001 From: Alexander Miranda Date: Wed, 19 Jun 2024 12:55:06 -0500 Subject: [PATCH] feat: #1140 updating test values to match with callback name --- doc/md_docs_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/md_docs_test.go b/doc/md_docs_test.go index 7b317d3a..4abf86e2 100644 --- a/doc/md_docs_test.go +++ b/doc/md_docs_test.go @@ -133,7 +133,7 @@ func TestGenMdTreeCustomWithFooter(t *testing.T) { defer os.RemoveAll(tmpdir) prepender := func(s string) string { return "Prepended" } - appender := func(s string) string { return "Postpended" } + appender := func(s string) string { return "Appended" } identity := func(s string) string { return s } if err := GenMarkdownTreeCustomWithFooter(rootCmd, tmpdir, prepender, appender, identity); err != nil { @@ -143,17 +143,17 @@ func TestGenMdTreeCustomWithFooter(t *testing.T) { gotRoot := fileContents(t, tmpdir, "root.md") checkStringContains(t, gotRoot, "Prepended") checkStringContains(t, gotRoot, rootCmd.Long) - checkStringContains(t, gotRoot, "Postpended") + checkStringContains(t, gotRoot, "Appended") gotEcho := fileContents(t, tmpdir, "root_echo.md") checkStringContains(t, gotEcho, "Prepended") checkStringContains(t, gotEcho, echoCmd.Long) - checkStringContains(t, gotEcho, "Postpended") + checkStringContains(t, gotEcho, "Appended") gotEchoSub := fileContents(t, tmpdir, "root_echo_echosub.md") checkStringContains(t, gotEchoSub, "Prepended") checkStringContains(t, gotEchoSub, echoSubCmd.Long) - checkStringContains(t, gotEchoSub, "Postpended") + checkStringContains(t, gotEchoSub, "Appended") } func fileContents(t *testing.T, dir, filename string) string {