task_tracker/test/api_index_test.go
2019-02-16 19:44:03 -05:00

20 lines
238 B
Go

package test
import (
"testing"
)
func TestIndex(t *testing.T) {
r := Get("/", nil, nil)
var info InfoAR
UnmarshalResponse(r, &info)
if len(info.Info.Name) <= 0 {
t.Error()
}
if len(info.Info.Version) <= 0 {
t.Error()
}
}