diff --git a/backend/src/middleware/validation/validationMiddleware.js b/backend/src/middleware/validation/validationMiddleware.js index d36e64846..e98a787a2 100644 --- a/backend/src/middleware/validation/validationMiddleware.js +++ b/backend/src/middleware/validation/validationMiddleware.js @@ -60,10 +60,10 @@ const validateUpdatePost = async (resolve, root, args, context, info) => { return validatePost(resolve, root, args, context, info) } -const validateReport = async (resolve, root, args, context, info) => { +const validateFiledReport = async (resolve, root, args, context, info) => { const { resourceId } = args const { user } = context - if (resourceId === user.id) throw new Error('You cannot report yourself!') + if (resourceId === user.id) throw new Error("You can't file a report about yourself!") return resolve(root, args, context, info) } @@ -141,7 +141,7 @@ export default { CreatePost: validatePost, UpdatePost: validateUpdatePost, UpdateUser: validateUpdateUser, - fileReport: validateReport, + fileReport: validateFiledReport, review: validateReview, }, } diff --git a/webapp/components/Notification/Notification.spec.js b/webapp/components/Notification/Notification.spec.js index 6986db47d..ff3da9d35 100644 --- a/webapp/components/Notification/Notification.spec.js +++ b/webapp/components/Notification/Notification.spec.js @@ -236,14 +236,14 @@ describe('Notification', () => { expect(wrapper.text()).toContain('@mrs.-badwomen') }) - it('renders the identifier "notifications.report.category"', () => { + it('renders the identifier "notifications.filedReport.category"', () => { wrapper = Wrapper() - expect(wrapper.text()).toContain('notifications.report.category') + expect(wrapper.text()).toContain('notifications.filedReport.category') }) - it('renders the identifier "notifications.report.description"', () => { + it('renders the identifier "notifications.filedReport.description"', () => { wrapper = Wrapper() - expect(wrapper.text()).toContain('notifications.report.description') + expect(wrapper.text()).toContain('notifications.filedReport.description') }) it('has no class "read"', () => { diff --git a/webapp/components/Notification/Notification.vue b/webapp/components/Notification/Notification.vue index bae604a09..a747e7b0a 100644 --- a/webapp/components/Notification/Notification.vue +++ b/webapp/components/Notification/Notification.vue @@ -29,10 +29,10 @@