feat(core): klien Docker SDK + tia-love doctor (docker/audio/go/stacks) + e2e doctor
CI / test (push) Successful in 10s
CI / test (push) Successful in 10s
This commit is contained in:
1 parent
3f3cc9e8bb
commit
18055979da
9 files changed
+322
-9
No files matched your search
@@ -191,6 +191,23 @@ func TestReducedMotionToggle(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestDoctorCommand(t *testing.T) {
|
||||
out, err := exec.Command(binPath, "doctor").CombinedOutput()
|
||||
code := 0
|
||||
if ee, ok := err.(*exec.ExitError); ok {
|
||||
code = ee.ExitCode()
|
||||
}
|
||||
if code != 0 && code != 1 {
|
||||
t.Fatalf("exit code %d, mau 0/1.\n%s", code, out)
|
||||
}
|
||||
s := string(out)
|
||||
for _, want := range []string{"docker", "audio", "go", "stacks"} {
|
||||
if !strings.Contains(s, want) {
|
||||
t.Fatalf("output doctor tidak memuat %q:\n%s", want, s)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestMouseAndNavigateKeys(t *testing.T) {
|
||||
u := startTUI(t)
|
||||
u.waitContains("belum ada klik", 5*time.Second)
|
||||
|
||||
Reference in new issue
Block a user