Remove viewer from logout (#7029)

This commit is contained in:
Antoine Cormouls
2020-12-08 00:45:51 +01:00
committed by GitHub
parent 88e958a75f
commit b398894341
4 changed files with 93 additions and 178 deletions

View File

@@ -964,7 +964,7 @@ describe('ParseGraphQLServer', () => {
.map(field => field.name)
.sort();
expect(payloadFields).toEqual(['clientMutationId', 'viewer']);
expect(payloadFields).toEqual(['clientMutationId', 'ok']);
});
it('should have clientMutationId in createClass mutation input', async () => {
@@ -6943,9 +6943,7 @@ describe('ParseGraphQLServer', () => {
mutation LogOutUser($input: LogOutInput!) {
logOut(input: $input) {
clientMutationId
viewer {
sessionToken
}
ok
}
}
`,
@@ -6961,7 +6959,7 @@ describe('ParseGraphQLServer', () => {
},
});
expect(logOut.data.logOut.clientMutationId).toEqual(clientMutationId);
expect(logOut.data.logOut.viewer.sessionToken).toEqual(sessionToken);
expect(logOut.data.logOut.ok).toEqual(true);
try {
await apolloClient.query({