From afe2c74bba8210418bd4e8301c3f52d8c792ade6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Thu, 9 Apr 2020 11:16:28 +0200 Subject: [PATCH] Cleanup --- ...notification_from_report_to_filing_user.sh | 28 ------------------- .../NotificationList/NotificationList.spec.js | 4 +-- 2 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 neo4j/.archived/add_notification_from_report_to_filing_user.sh diff --git a/neo4j/.archived/add_notification_from_report_to_filing_user.sh b/neo4j/.archived/add_notification_from_report_to_filing_user.sh deleted file mode 100644 index 15af5c245..000000000 --- a/neo4j/.archived/add_notification_from_report_to_filing_user.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -ENV_FILE=$(dirname "$0")/.env -[[ -f "$ENV_FILE" ]] && source "$ENV_FILE" - -if [ -z "$NEO4J_USERNAME" ] || [ -z "$NEO4J_PASSWORD" ]; then - echo "Please set NEO4J_USERNAME and NEO4J_PASSWORD environment variables." - echo "Database manipulation is not possible without connecting to the database." - echo "E.g. you could \`cp .env.template .env\` unless you run the script in a docker container" -fi - -until echo 'RETURN "Connection successful" as info;' | cypher-shell -do - echo "Connecting to neo4j failed, trying again..." - sleep 1 -done - -echo " - :begin - MATCH (submitter:User)-[filed:FILED]->(report:Report) - WHERE NOT (submitter)<-[:NOTIFIED]-(report) - CREATE (submitter)<-[notification:NOTIFIED]-(report) - SET notification.createdAt = filed.createdAt, - notification.updatedAt = notification.createdAt, - notification.read = FALSE, - notification.reason = 'filed_report_on_resource'; - :commit -" | cypher-shell \ No newline at end of file diff --git a/webapp/components/NotificationList/NotificationList.spec.js b/webapp/components/NotificationList/NotificationList.spec.js index 58552f819..7fae86c64 100644 --- a/webapp/components/NotificationList/NotificationList.spec.js +++ b/webapp/components/NotificationList/NotificationList.spec.js @@ -74,12 +74,12 @@ describe('NotificationList.vue', () => { wrapper = Wrapper() }) - describe("emit 'read', like as clicked on a notification", () => { + describe("emit 'read' like as clicked on a notification", () => { beforeEach(() => { wrapper.find(Notification).vm.$emit('read') }) - it("emits 'markAsRead' with the id of the notification source, if 'read' was emited", () => { + it("emits 'markAsRead' with the id of the notification source if 'read' was emited", () => { expect(wrapper.emitted('markAsRead')[0]).toEqual(['post-1']) }) })