mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-18 18:04:17 +00:00
Add missing replit badge + id anchor in supported-targets.md. Add project-mode integration tests for audit, check, diff, and log commands to close gaps found in codebase audit.
32 lines
662 B
Go
32 lines
662 B
Go
//go:build !online
|
|
|
|
package integration
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"skillshare/internal/testutil"
|
|
)
|
|
|
|
func TestCheckProject_NoItems(t *testing.T) {
|
|
sb := testutil.NewSandbox(t)
|
|
defer sb.Cleanup()
|
|
|
|
projectRoot := sb.SetupProjectDir("claude")
|
|
|
|
result := sb.RunCLIInDir(projectRoot, "check", "-p")
|
|
result.AssertSuccess(t)
|
|
result.AssertOutputContains(t, "No tracked")
|
|
}
|
|
|
|
func TestCheckProject_Help(t *testing.T) {
|
|
sb := testutil.NewSandbox(t)
|
|
defer sb.Cleanup()
|
|
|
|
projectRoot := sb.SetupProjectDir("claude")
|
|
|
|
result := sb.RunCLIInDir(projectRoot, "check", "-p", "--help")
|
|
result.AssertSuccess(t)
|
|
result.AssertOutputContains(t, "Check for available updates")
|
|
}
|