INNER CODE UNIT · Go
TestOpenCmdReturnsNilOnSuccess
career-ops-hq/career-ops · dashboard/open_command_failure_test.go:42
func TestOpenCmdReturnsNilOnSuccess(t *testing.T) {
previous := runOpenCommand
defer func() { runOpenCommand = previous }()
runOpenCommand = func(name string, args ...string) error { return nil }
if msg := openCmd("https://example.com"); msg() != nil {
t.Fatalf("expected no message on success, got %#v", msg())
}
}