yao/sui/core/compile_test.go
2023-11-22 11:37:08 +08:00

20 lines
301 B
Go

package core
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCompile(t *testing.T) {
prepare(t)
defer clean()
page := testPage(t)
html, err := page.Compile(&BuildOption{})
if err != nil {
t.Fatalf("Compile error: %v", err)
}
assert.Contains(t, html, "input.data")
}