...

Source file src/github.com/cybertec-postgresql/pgwatch/v3/internal/webui/embed_test.go

Documentation: github.com/cybertec-postgresql/pgwatch/v3/internal/webui

     1  package webui
     2  
     3  import (
     4  	"io/fs"
     5  	"testing"
     6  )
     7  
     8  func TestWebUIInit(t *testing.T) {
     9  	if WebUIFs == nil {
    10  		t.Error("WebUIFs is nil")
    11  	}
    12  	if _, err := fs.Stat(WebUIFs, "index.html"); err != nil {
    13  		t.Errorf("WebUIFs does not contain index.html: %v", err)
    14  	}
    15  }
    16