Skip to content

Commit 9449e0f

Browse files
committed
update test for loginParams struct
1 parent a014e9b commit 9449e0f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/src/login_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ func TestLogin(t *testing.T) {
1818
t.Helper()
1919

2020
var out bytes.Buffer
21-
err = loginCmd(context.Background(), cfg, cfg.apiClient(nil, io.Discard), endpointArg, &out)
21+
err = loginCmd(context.Background(), loginParams{
22+
cfg: cfg,
23+
client: cfg.apiClient(nil, io.Discard),
24+
endpoint: endpointArg,
25+
out: &out,
26+
})
2227
return strings.TrimSpace(out.String()), err
2328
}
2429

0 commit comments

Comments
 (0)