test(auth/status): cover an expiring token with no refresh token expiry · cli/cli@b931dea · GitHub
Skip to content

Commit b931dea

Browse files
babakksCopilot
andauthored
test(auth/status): cover an expiring token with no refresh token expiry
Both successful expiring-token text fixtures set a refresh token expiry, so the guard that omits the refresh token expiry line was only reached through the rejected-token path. Add a fixed-clock case that asserts the access token annotation is shown and the refresh token expiry line is absent, and a --json case that asserts refreshTokenExpiresAt is omitted while tokenExpiresAt is kept. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ac178b5a-5b62-49bd-9e83-4796c7ddec46
1 parent 3048af1 commit b931dea

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

‎pkg/cmd/auth/status/status_test.go‎

Lines changed: 39 additions & 0 deletions

0 commit comments

Comments
 (0)