Fix unit tests

This commit is contained in:
Ramon Wenger 2021-05-25 23:54:16 +02:00
parent a7e0555863
commit 4a5ad26fe6
2 changed files with 17 additions and 2 deletions

View File

@ -2,6 +2,7 @@ mutation UpdateTeam($input: UpdateTeamInput!) {
updateTeam(input: $input) { updateTeam(input: $input) {
success success
team { team {
id
name name
} }
} }

View File

@ -20,8 +20,22 @@ ME_QUERY = """
} }
""" """
CREATE_TEAM_MUTATION = get_graphql_mutation('createTeam.gql') TEAM_PARTS = """
JOIN_TEAM_MUTATION = get_graphql_mutation('joinTeam.gql') fragment TeamParts on TeamNode {
name
code
id
members {
firstName
lastName
id
isMe
}
}
"""
CREATE_TEAM_MUTATION = TEAM_PARTS + get_graphql_mutation('createTeam.gql')
JOIN_TEAM_MUTATION = TEAM_PARTS + get_graphql_mutation('joinTeam.gql')
UPDATE_TEAM_MUTATION = get_graphql_mutation('updateTeam.gql') UPDATE_TEAM_MUTATION = get_graphql_mutation('updateTeam.gql')
LEAVE_TEAM_MUTATION = get_graphql_mutation('me/leaveTeam.gql') LEAVE_TEAM_MUTATION = get_graphql_mutation('me/leaveTeam.gql')