Files
sablier/pkg/theme/list_test.go
Alexis Couvreur 4122109349 wip lol
2024-11-16 22:49:35 -05:00

26 lines
504 B
Go

package theme_test
import (
"github.com/sablierapp/sablier/pkg/theme"
"testing"
"testing/fstest"
"github.com/stretchr/testify/assert"
)
func TestList(t *testing.T) {
themes, err := theme.NewWithCustomThemes(
fstest.MapFS{
"theme1.html": &fstest.MapFile{},
"inner/theme2.html": &fstest.MapFile{},
})
if err != nil {
t.Error(err)
return
}
list := themes.List()
assert.ElementsMatch(t, []string{"theme1", "theme2", "ghost", "hacker-terminal", "matrix", "shuffle"}, list)
}