aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/krino/main_test.go')
-rw-r--r--cmd/krino/main_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/krino/main_test.go b/cmd/krino/main_test.go
index 46ceb44..1c01fa0 100644
--- a/cmd/krino/main_test.go
+++ b/cmd/krino/main_test.go
@@ -51,10 +51,14 @@ func TestCommandsAreReserved(t *testing.T) {
}
}
-func TestSortNotYet(t *testing.T) {
+// TestSortNoConfig: apply is implemented as of Task 7, so running with no
+// config at all now fails the same way every other command does — "not
+// found" from engine.Load, not the old "not implemented yet" hard stop this
+// test used to pin (removed as part of Task 7; see cmd/krino/sort.go).
+func TestSortNoConfig(t *testing.T) {
home(t)
code, _, errOut := runCLI(t)
- if code != 2 || !strings.Contains(errOut, "not implemented yet") {
+ if code != 2 || !strings.Contains(errOut, "not found; create it with: krino init") {
t.Fatalf("got %d %q", code, errOut)
}
}