Files
docker-cli/cli/command/context/show_test.go
Nicolas De Loof e9a4d7e611 introduce context show command
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2022-04-25 14:40:24 +02:00

20 lines
340 B
Go

package context
import (
"testing"
"gotest.tools/v3/assert"
"gotest.tools/v3/golden"
)
func TestShow(t *testing.T) {
cli := makeFakeCli(t)
createTestContext(t, cli, "current")
cli.SetCurrentContext("current")
cli.OutBuffer().Reset()
assert.NilError(t, runShow(cli))
golden.Assert(t, cli.OutBuffer().String(), "show.golden")
}