Remove obsolete report factory

This commit is contained in:
roschaefer 2019-09-02 18:56:10 +02:00
parent e5be418076
commit 580c048cfa
2 changed files with 0 additions and 21 deletions

View File

@ -6,7 +6,6 @@ import createPost from './posts.js'
import createComment from './comments.js'
import createCategory from './categories.js'
import createTag from './tags.js'
import createReport from './reports.js'
export const seedServerHost = 'http://127.0.0.1:4001'
@ -27,7 +26,6 @@ const factories = {
Comment: createComment,
Category: createCategory,
Tag: createTag,
Report: createReport,
}
export const cleanDatabase = async (options = {}) => {

View File

@ -1,19 +0,0 @@
import faker from 'faker'
export default function create(params) {
const { description = faker.lorem.sentence(), id } = params
return {
mutation: `
mutation($id: ID!, $description: String!) {
report(description: $description, id: $id) {
id
}
}
`,
variables: {
id,
description,
},
}
}