Skip to content

Commit 5827774

Browse files
committed
test(skills): end-to-end test for notes in GenSkillsDir
1 parent c3d1a13 commit 5827774

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

doc/skills_docs_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ func TestGenSkillsDir(t *testing.T) {
9797
config := SkillsConfig{
9898
Name: "my-tool",
9999
Description: "A test tool",
100+
Notes: []string{
101+
"Most list commands support -o json.",
102+
},
100103
}
101104
if err := GenSkillsDir(rootCmd, tmpdir, config); err != nil {
102105
t.Fatalf("GenSkillsDir failed: %v", err)
@@ -118,6 +121,8 @@ func TestGenSkillsDir(t *testing.T) {
118121
checkStringContains(t, skillContent, "references/root.md")
119122
checkStringOmits(t, skillContent, "### Examples")
120123
checkStringOmits(t, skillContent, "### Options")
124+
checkStringContains(t, skillContent, "## Notes")
125+
checkStringContains(t, skillContent, "- Most list commands support -o json.")
121126

122127
refDir := filepath.Join(tmpdir, "my-tool", "references")
123128
expectedRefs := []string{

0 commit comments

Comments
 (0)