diff options
author | Sean E. Russell <ser@ser1.net> | 2020-04-27 20:33:41 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-04-27 20:33:41 -0500 |
commit | 285d4d02972e5d3e52efa6554fcbb08b42577f7c (patch) | |
tree | a06df20b360abdbc011b697e01e7ac9df5022117 /colorschemes | |
parent | 1e78e6faa096237440e9cbbe254951f6d8588624 (diff) |
Go vet/lint cleanups
Diffstat (limited to 'colorschemes')
-rw-r--r-- | colorschemes/registry_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/colorschemes/registry_test.go b/colorschemes/registry_test.go index e4216ab..3f288d1 100644 --- a/colorschemes/registry_test.go +++ b/colorschemes/registry_test.go @@ -1,6 +1,8 @@ package colorschemes import ( + "github.com/shibukawa/configdir" + "path/filepath" "reflect" "testing" ) @@ -8,8 +10,10 @@ import ( func TestColorRegistry(t *testing.T) { colors := []string{"default", "default-dark", "solarized", "solarized16-dark", "solarized16-light", "monokai", "vice"} zeroCS := Colorscheme{} + cd := configdir.New("", "gotop") + cd.LocalPath, _ = filepath.Abs(".") for _, cn := range colors { - c, e := FromName("", cn) + c, e := FromName(cd, cn) if e != nil { t.Errorf("unexpected error fetching built-in color %s: %s", cn, e) } |