Skip to content

Commit

Permalink
tests: passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Jan 21, 2024
1 parent ab93a26 commit 21ad8c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/doco/help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"bytes"
_ "embed"
"strings"
"testing"
)

Expand All @@ -15,7 +16,7 @@ func TestRun(t *testing.T) {
t.Fatal(err)
}

if bb.String() != content {
if !strings.Contains(bb.String(), content) {
t.Fatal("expected output")
}
}

0 comments on commit 21ad8c7

Please sign in to comment.