From d25ca0ef6f0689c51cf979dc7d4073dfe3a80f5c Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Mon, 29 Jan 2018 15:36:59 -0700 Subject: [PATCH] more test criteria --- test/server/graph/mutations/createComment.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/server/graph/mutations/createComment.js b/test/server/graph/mutations/createComment.js index bd89b31a6..058b19a41 100644 --- a/test/server/graph/mutations/createComment.js +++ b/test/server/graph/mutations/createComment.js @@ -296,6 +296,11 @@ describe('graph.mutations.createComment', () => { if (error) { expect(data.createComment).to.have.property('errors').not.null; expect(data.createComment).to.have.property('comment').null; + expect(data.createComment.errors).to.have.length(1); + expect(data.createComment.errors[0]).to.have.property( + 'translation_key', + 'NOT_AUTHORIZED' + ); } else { if (data.createComment.errors) { console.error(data.createComment.errors);