mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 21:33:06 +01:00
* refactor: move app/theme to pkg/theme * refactor * wip * use dockerindocker * add providertest * wip * wip * test(docker): get state now uses dind container to test against a real provider * test(docker): move to docker_test package * refactor(docker): create container_inspect.go * test(docker): add more dind test * test(docker): event test now use docker in docker * refactor: remove unused instance type props * refactor test docker * fix instance list sort * stabilize test * remove testcontainers custom config
27 lines
549 B
Go
27 lines
549 B
Go
package theme_test
|
|
|
|
import (
|
|
"github.com/neilotoole/slogt"
|
|
"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{},
|
|
}, slogt.New(t))
|
|
if err != nil {
|
|
t.Error(err)
|
|
return
|
|
}
|
|
|
|
list := themes.List()
|
|
|
|
assert.ElementsMatch(t, []string{"theme1", "theme2", "ghost", "hacker-terminal", "matrix", "shuffle"}, list)
|
|
}
|