wui_widget_test.go 234 B

123456789101112131415
  1. package wui_widget
  2. import (
  3. "testing"
  4. )
  5. func TestWuiWidget(t *testing.T) {
  6. w := NewWuiWidget()
  7. if id := w.Id(); id == "" {
  8. t.Fatalf("ID is empty")
  9. }
  10. if strHtml := w.Html(); strHtml == "" {
  11. t.Fatalf("strHtml is empty")
  12. }
  13. }