diff options
Diffstat (limited to 'internal/askcli/formatter_test.go')
| -rw-r--r-- | internal/askcli/formatter_test.go | 7 |
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") |
