mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 15:22:47 +01:00
22 lines
375 B
Go
22 lines
375 B
Go
package ui
|
|
|
|
import "testing"
|
|
|
|
func TestUI(t *testing.T) {
|
|
requiredFiles := []string{
|
|
"dist/index.html",
|
|
"dist/favicon.ico",
|
|
"dist/manifest.json",
|
|
"dist/img",
|
|
}
|
|
for _, requiredFile := range requiredFiles {
|
|
t.Run("Require "+requiredFile, func(t *testing.T) {
|
|
f, err := UI.Open(requiredFile)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer f.Close()
|
|
})
|
|
}
|
|
}
|