You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One way to go about it would be to mock the GET call with three responses:
Return three groups, two of which are related to Teams and one that isn't
Return the Team for the first group related to Teams
Return the Team for the second group related to Teams
For all other cases return an Invalid request error
If the commands completed without error, the code is proven to work (ie. not trying to retrieve information about a group that's not linked to a Team). Does this help?
The
teams team list
command usesbeta
endpoints for two requests that can now usev1.0
endpoints.cli-microsoft365/src/m365/teams/commands/team/team-list.ts
Lines 36 to 38 in 266fd8d
List joinedTeams: https://docs.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-1.0&tabs=http
cli-microsoft365/src/m365/teams/commands/team/team-list.ts
Lines 61 to 67 in 266fd8d
Get team: https://docs.microsoft.com/en-us/graph/api/team-get?view=graph-rest-1.0&tabs=http
The text was updated successfully, but these errors were encountered: