Files
dolt/cmd/noms/noms_version_test.go
T
2016-07-06 13:14:05 -07:00

29 lines
703 B
Go

// Copyright 2016 Attic Labs, Inc. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
package main
import (
"fmt"
"testing"
"github.com/attic-labs/noms/go/constants"
"github.com/attic-labs/noms/go/util/clienttest"
"github.com/attic-labs/testify/suite"
)
func TestVersion(t *testing.T) {
suite.Run(t, &nomsVersionTestSuite{})
}
type nomsVersionTestSuite struct {
clienttest.ClientTestSuite
}
func (s *nomsVersionTestSuite) TestVersion() {
val, _ := s.Run(main, []string{"version"})
expectedVal := fmt.Sprintf("format version: %v\nbuilt from %v\n", constants.NomsVersion, constants.NomsGitSHA)
s.Equal(val, expectedVal)
}