mirror of
https://github.com/MengMengCode/VoCat.git
synced 2026-08-16 21:03:44 +08:00
17 lines
288 B
Go
17 lines
288 B
Go
package web
|
|
|
|
import (
|
|
"io/fs"
|
|
"testing"
|
|
)
|
|
|
|
func TestEmbeddedDistributionContainsIndex(t *testing.T) {
|
|
index, err := fs.ReadFile(Dist, "index.html")
|
|
if err != nil {
|
|
t.Fatalf("read embedded index.html: %v", err)
|
|
}
|
|
if len(index) == 0 {
|
|
t.Fatal("embedded index.html is empty")
|
|
}
|
|
}
|