feat: Add non-interactive mode (#18)

This commit is contained in:
Ed Zynda
2025-05-16 14:06:28 +03:00
committed by GitHub
parent d127a1c4eb
commit 623d132772
8 changed files with 414 additions and 8 deletions

View File

@@ -0,0 +1,24 @@
package spinner
import (
"testing"
"time"
)
func TestSpinner(t *testing.T) {
t.Parallel()
// Create a spinner
s := NewSpinner("Test spinner")
// Start the spinner
s.Start()
// Wait a bit to let it run
time.Sleep(100 * time.Millisecond)
// Stop the spinner
s.Stop()
// If we got here without panicking, the test passes
}