aboutsummaryrefslogtreecommitdiff
path: root/cmd/krino/main_test.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-12 20:14:47 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-12 20:14:47 +0200
commit3f8679be9373ee7508d512dfdfc1dda0839c7f90 (patch)
treeec02eb075f6c4e90f21baa2fe674e86a2f7f6a62 /cmd/krino/main_test.go
parent24a84671ace373ae331fa83a1ff484990f4dff0e (diff)
downloadkrino-3f8679be9373ee7508d512dfdfc1dda0839c7f90.tar.gz
krino-3f8679be9373ee7508d512dfdfc1dda0839c7f90.zip
krino: acting — trash, journal, apply, lock, review, undo
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)
}
}