github.com/Thanhphan1147/cloudfoundry-cli@v7.1.0+incompatible/version/version_test.go (about)

     1  package version_test
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/version"
     5  	. "github.com/onsi/ginkgo"
     6  	. "github.com/onsi/gomega"
     7  )
     8  
     9  var _ = Describe("Version", func() {
    10  	Describe("VersionString", func() {
    11  		When("passed no ldflags", func() {
    12  			It("returns the default version", func() {
    13  				Expect(version.VersionString()).To(Equal("0.0.0-unknown-version"))
    14  			})
    15  		})
    16  	})
    17  })