22 lines
429 B
Go
22 lines
429 B
Go
package appui
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestIndexHTMLInlinesAssets(t *testing.T) {
|
|
if !strings.Contains(IndexHTML, "--accent:") {
|
|
t.Fatal("css missing")
|
|
}
|
|
if !strings.Contains(IndexHTML, "getEditState") {
|
|
t.Fatal("js missing")
|
|
}
|
|
if strings.Contains(IndexHTML, `href="app.css"`) {
|
|
t.Fatal("css link not replaced")
|
|
}
|
|
if strings.Contains(IndexHTML, `src="app.js"`) {
|
|
t.Fatal("js src not replaced")
|
|
}
|
|
}
|