graphql-engine/cli/telemetry/telemetry_test.go
Shahidh K Muhammed 8ea6f77c7b
cli: add directory name as an argument to init cmd (#3590)
* add directory-name as an argument to init command

* change dev version to a const string
2019-12-25 14:01:29 +05:30

25 lines
451 B
Go

package telemetry_test
import (
"testing"
"github.com/hasura/graphql-engine/cli/telemetry"
"github.com/hasura/graphql-engine/cli/version"
)
func TestBeamDev(t *testing.T) {
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"
tm.Command = "TEST"
tm.CanBeam = true
tm.Beam()
}