Files
catalyst/ui/ui_test.go
Jonas Plum 2bad1f5f28 Migrate to Go 1.18 (#45)
* Migrate to Go 1.18 and add linters
2022-03-20 03:17:18 +01:00

30 lines
465 B
Go

package ui
import "testing"
func TestUI(t *testing.T) {
t.Parallel()
tests := []struct {
name string
path string
}{
{"index.html", "dist/index.html"},
{"favicon.ico", "dist/favicon.ico"},
{"manifest.json", "dist/manifest.json"},
{"img", "dist/img"},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
f, err := UI.Open(tt.path)
if err != nil {
t.Fatal(err)
}
defer f.Close()
})
}
}