mirror of
https://github.com/simon987/task_tracker.git
synced 2025-04-17 01:16:42 +00:00
20 lines
238 B
Go
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()
|
|
}
|
|
}
|