Adjusted query/tag flow

This commit is contained in:
Wyatt Johnson
2017-05-09 15:01:01 -06:00
parent b8e530ca1f
commit 2e1bc8d75a
25 changed files with 476 additions and 343 deletions
+4 -2
View File
@@ -21,7 +21,9 @@ describe('graph.mutations.createComment', () => {
id
status
tags {
id
tag {
name
}
}
}
errors {
@@ -228,7 +230,7 @@ describe('graph.mutations.createComment', () => {
.then(({tags}) => {
if (tag) {
expect(tags).to.have.length(1);
expect(tags[0]).to.have.property('id', tag);
expect(tags[0].tag.name).to.have.equal(tag);
} else {
expect(tags).length(0);
}