| 1234567891011121314151617181920 |
- package commands
- import (
- "bytes"
- "strings"
- "testing"
- "github.com/docker/ecs-plugin/internal"
- "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(), internal.Version))
- }
|