mirror of
https://github.com/docker/compose.git
synced 2025-10-26 16:53:53 +01:00
19 lines
298 B
Go
19 lines
298 B
Go
package commands
|
|
|
|
import (
|
|
"bytes"
|
|
"strings"
|
|
"testing"
|
|
|
|
"gotest.tools/v3/assert"
|
|
)
|
|
|
|
func TestVersion(t *testing.T) {
|
|
root := NewRootCmd(nil)
|
|
var out bytes.Buffer
|
|
root.SetOut(&out)
|
|
root.SetArgs([]string{"version"})
|
|
root.Execute()
|
|
assert.Check(t, strings.Contains(out.String(), Version))
|
|
}
|