summaryrefslogtreecommitdiff
path: root/internal/askcli/formatter_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-27 12:20:09 +0200
committerPaul Buetow <paul@buetow.org>2026-03-27 12:20:09 +0200
commit2ddb334fa671b9c425ca43c8c673c6b36c3ad0ab (patch)
treecfff7b2b8397ebf4fad9b81a91d54563ea66d208 /internal/askcli/formatter_test.go
parentc8c57f0d5821ae0542cb613c87e6ed2ea66e1e0a (diff)
release: v0.27.1v0.27.1
Diffstat (limited to 'internal/askcli/formatter_test.go')
-rw-r--r--internal/askcli/formatter_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/askcli/formatter_test.go b/internal/askcli/formatter_test.go
index 2921555..3a9239a 100644
--- a/internal/askcli/formatter_test.go
+++ b/internal/askcli/formatter_test.go
@@ -195,6 +195,13 @@ func TestFormatSuccess(t *testing.T) {
}
}
+func TestFormatCreatedTask(t *testing.T) {
+ output := FormatCreatedTask("sp")
+ if output != "created task sp\n" {
+ t.Fatalf("FormatCreatedTask = %q, want created task message", output)
+ }
+}
+
func TestFormatError(t *testing.T) {
err := &testError{msg: "something went wrong"}
output := FormatError(err, "0")