freifunkmanager/websocket/server_test.go

18 lines
287 B
Go
Raw Normal View History

package websocket
import (
"testing"
"github.com/FreifunkBremen/freifunkmanager/runtime"
"github.com/stretchr/testify/assert"
)
func TestStart(t *testing.T) {
assert := assert.New(t)
nodes := &runtime.Nodes{}
assert.Nil(clients)
Start(nodes)
assert.NotNil(clients)
Close()
}