mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
3136ffad1b
> ### Description Update `go.mod` to allow other packages to import [v2.0.0 versions](https://blog.golang.org/v2-go-modules). ### Changelog - [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label. ### Affected components - [x] CLI https://github.com/hasura/graphql-engine-mono/pull/1584 GitOrigin-RevId: a5d17ad20289d1cd7217763f56ef3ba6552d69c4
25 lines
457 B
Go
25 lines
457 B
Go
package telemetry_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hasura/graphql-engine/cli/v2/telemetry"
|
|
"github.com/hasura/graphql-engine/cli/v2/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()
|
|
}
|