Skip to content

Commit

Permalink
Update packages/fields-authed-relationship/src/tests/index.test.js
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Leslie <[email protected]>
  • Loading branch information
singhArmani and timleslie authored Aug 24, 2020
1 parent ff542f5 commit 989e165
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions packages/fields-authed-relationship/src/tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,14 @@ multiAdapterRunners().map(({ runner, adapterName }) =>
// Try to create a Post after user is logged in
const { data, errors } = await networkedGraphqlRequest({
app,
headers: {
Authorization: `Bearer ${token}`,
},
query: `mutation($title: String) {
createPost(data: {title: $title}) {
title
author {
username
}
}
}`,
headers: { Authorization: `Bearer ${token}` },
query: `
mutation($title: String) {
createPost(data: {title: $title}) {
title
author { username }
}
}`,
variables: { title: 'Post with logged in user' },
});

Expand Down

0 comments on commit 989e165

Please sign in to comment.