freifunkmanager/websocket/server_test.go

19 lines
330 B
Go

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{}
commands := &runtime.Commands{}
assert.Nil(clients)
Start(nodes, commands)
assert.NotNil(clients)
Close()
}