Fix unit tests
This commit is contained in:
parent
a7e0555863
commit
4a5ad26fe6
|
|
@ -2,6 +2,7 @@ mutation UpdateTeam($input: UpdateTeamInput!) {
|
|||
updateTeam(input: $input) {
|
||||
success
|
||||
team {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,22 @@ ME_QUERY = """
|
|||
}
|
||||
"""
|
||||
|
||||
CREATE_TEAM_MUTATION = get_graphql_mutation('createTeam.gql')
|
||||
JOIN_TEAM_MUTATION = get_graphql_mutation('joinTeam.gql')
|
||||
TEAM_PARTS = """
|
||||
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')
|
||||
LEAVE_TEAM_MUTATION = get_graphql_mutation('me/leaveTeam.gql')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue