mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
24 lines
390 B
Go
24 lines
390 B
Go
package telemetry_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hasura/graphql-engine/cli/telemetry"
|
|
)
|
|
|
|
func TestBeamDev(t *testing.T) {
|
|
tm := telemetry.BuildEvent()
|
|
tm.Version = "dev"
|
|
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()
|
|
}
|