mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
8ea6f77c7b
* add directory-name as an argument to init command * change dev version to a const string
25 lines
451 B
Go
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()
|
|
}
|