graphql-engine/cli/telemetry/telemetry_test.go

25 lines
451 B
Go
Raw Normal View History

2019-01-28 16:55:28 +03:00
package telemetry_test
import (
"testing"
"github.com/hasura/graphql-engine/cli/telemetry"
"github.com/hasura/graphql-engine/cli/version"
2019-01-28 16:55:28 +03:00
)
func TestBeamDev(t *testing.T) {
2019-01-28 16:55:28 +03:00
tm := telemetry.BuildEvent()
tm.Version = version.DevVersion
tm.Command = "TEST"
tm.CanBeam = true
tm.Beam()
}
func TestBeamProd(t *testing.T) {
tm := telemetry.BuildEvent()
tm.Version = "v1.0.0-a-valid-semver"
2019-01-28 16:55:28 +03:00
tm.Command = "TEST"
tm.CanBeam = true
tm.Beam()
}