grim/convey

Fix the order of some attributes
redux
2021-10-16, Gary Kramlich
9d3b752261c4
Fix the order of some attributes
package podman
import (
"testing"
. "github.com/onsi/gomega"
)
func TestLogout(t *testing.T) {
g := NewGomegaWithT(t)
l := &Logout{
Registry: "docker.io",
}
g.Expect(l.Valid()).To(BeNil())
}
func TestLogoutRegistryRequired(t *testing.T) {
g := NewGomegaWithT(t)
l := &Logout{}
g.Expect(l.Valid()).To(MatchError(ErrNoRegistry))
}