nginx-proxy-manager-zh/backend/internal/serverevents/sse_test.go
2023-07-28 15:01:54 +10:00

21 lines
352 B
Go

package serverevents
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGet(t *testing.T) {
s := Get()
assert.NotEqual(t, nil, s)
}
// This is just for code coverage more than anything
func TestEverything(t *testing.T) {
Get()
SendMessage("test", "test", map[string]string{"user_id": "10"})
SendChange("hosts")
Shutdown()
}