add theming
This commit is contained in:
parent
885e7d6e02
commit
8639799f6d
10 changed files with 1069 additions and 287 deletions
17
cmd/root_test.go
Normal file
17
cmd/root_test.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package cmd
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestValidateTheme_Valid(t *testing.T) {
|
||||
for _, name := range []string{"cyberpunk", "purplerain", "cactus"} {
|
||||
if err := validateTheme(name); err != nil {
|
||||
t.Errorf("validateTheme(%q) unexpected error: %v", name, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestValidateTheme_Invalid(t *testing.T) {
|
||||
if err := validateTheme("not-a-theme"); err == nil {
|
||||
t.Error("expected error for unrecognized theme name")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue