[TASK] add tests for webserver (for coveralls)
This commit is contained in:
parent
c82a07d3fe
commit
75ffdbeefe
|
@ -0,0 +1,17 @@
|
||||||
|
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()
|
||||||
|
}
|
Loading…
Reference in New Issue