mirror of
https://github.com/wassname/talk.git
synced 2026-10-02 12:50:49 +08:00
Moderation Refactor
This commit is contained in:
1 parent
8e8458781d
commit
25359ee88d
13 files changed
+346
-274
No files matched your search
@@ -49,6 +49,9 @@ describe('graph.mutations.createComment', () => {
|
||||
|
||||
return graphql(schema, query, {}, context).then(
|
||||
({ data, errors }) => {
|
||||
if (errors) {
|
||||
console.error(errors);
|
||||
}
|
||||
expect(errors).to.be.undefined;
|
||||
if (error) {
|
||||
expect(data.createComment).to.have.property('comment').null;
|
||||
@@ -98,7 +101,9 @@ describe('graph.mutations.createComment', () => {
|
||||
async () => {
|
||||
const context = new Context({ user });
|
||||
const { data, errors } = await graphql(schema, query, {}, context);
|
||||
|
||||
if (errors) {
|
||||
console.error(errors);
|
||||
}
|
||||
expect(errors).to.be.undefined;
|
||||
if (error) {
|
||||
expect(data.createComment).to.have.property('comment').null;
|
||||
|
||||
Reference in new issue
Block a user