[TASK] add tests for webserver (for coveralls)

This commit is contained in:
Martin Geno 2017-05-29 23:04:29 +02:00
parent c82a07d3fe
commit 75ffdbeefe
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
1 changed files with 17 additions and 0 deletions

17
websocket/server_test.go Normal file
View File

@ -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()
}