mirror of
https://github.com/wassname/talk.git
synced 2026-07-09 20:30:45 +08:00
more test criteria
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user