mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
27 lines
672 B
Go
27 lines
672 B
Go
// Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package root
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/luxfi/cli/tests/e2e/commands"
|
|
ginkgo "github.com/onsi/ginkgo/v2"
|
|
"github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = ginkgo.Describe("[Root]", func() {
|
|
ginkgo.It("can print version", func() {
|
|
expectedVersion, err := os.ReadFile("VERSION")
|
|
expectedVersionStr := fmt.Sprintf("lux version %s\n", string(expectedVersion))
|
|
gomega.Expect(err).Should(gomega.BeNil())
|
|
|
|
version := commands.GetVersion()
|
|
|
|
gomega.Expect(version).Should(gomega.Equal(expectedVersionStr))
|
|
gomega.Expect(err).Should(gomega.BeNil())
|
|
})
|
|
})
|