Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Alvarez <[email protected]>
  • Loading branch information
pendo324 committed Oct 20, 2023
1 parent 36e4df4 commit 136b0e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/finch/doc.TEMPLATE
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: "{{ .CmdPath }}"
---

## {{ .CmdPath }}{{if gt (len .Description) 0}}
## {{ .CmdPath }}

{{ .Description }}
{{if gt (len .Description) 0}}{{ .Description }}

{{end}}{{if gt (len .Properties) 0}}### Properties

Expand Down
3 changes: 2 additions & 1 deletion cmd/finch/gen_docs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ func TestGenDocsAction_runAdapter(t *testing.T) {
require.Equal(t, string(buf), fmt.Sprintf(`---
title: "test-command"
---
## test-command
%s
%sbash
test-command [flags]
%s
`, codeBlock, codeBlock))
Expand Down

0 comments on commit 136b0e9

Please sign in to comment.