Ignore users queries are excludeIgnored: Boolean instead of notIgnoredBy: String

This commit is contained in:
Benjamin Goering
2017-04-11 14:20:39 -07:00
parent 12e383ef13
commit eb1c1db09b
9 changed files with 55 additions and 67 deletions
+3 -3
View File
@@ -76,16 +76,16 @@ describe('graph.queries.asset', () => {
expect(ignoreUserResponse.errors).to.be.empty;
const assetCommentsWithoutIgnoredQuery = `
query assetCommentsQuery($assetId: ID!, $assetUrl: String!, $notIgnoredBy: String!) {
query assetCommentsQuery($assetId: ID!, $assetUrl: String!, $excludeIgnored: Boolean!) {
asset(id: $assetId, url: $assetUrl) {
comments(limit: 10, notIgnoredBy: $notIgnoredBy) {
comments(limit: 10, excludeIgnored: $excludeIgnored) {
id,
body,
}
}
}
`;
const assetCommentsResponse = await graphql(schema, assetCommentsWithoutIgnoredQuery, {}, context, {assetId, assetUrl, notIgnoredBy: userA.id});
const assetCommentsResponse = await graphql(schema, assetCommentsWithoutIgnoredQuery, {}, context, {assetId, assetUrl, excludeIgnored: true});
const comments = assetCommentsResponse.data.asset.comments;
expect(comments.length).to.equal(2);
});