47 Commits

Author SHA1 Message Date
Moriz Wahl
7b3d530023 close neo4j driver at the end of each test suite 2023-02-13 15:31:58 +01:00
Wolfgang Huß
e2f0e83c6f Move db/graphql folder content to graphql – backend 2022-11-09 09:08:17 +01:00
Wolfgang Huß
c42c1b2ef6 Fix group slug tests 2022-10-27 12:28:37 +02:00
Moriz Wahl
068d622c44 createPostMutation as function 2022-10-04 05:03:39 +02:00
Wolfgang Huß
6df10e5588 Refactor 'updateGroupMutation' to a function that returns GQL
- Add and refactor some tests for the user resolvers.
- Refactor minor in general.
2022-09-18 08:35:31 +02:00
Wolfgang Huß
7d9e42806c Refactor 'createGroupMutation' to a function that returns GQL 2022-09-18 07:07:11 +02:00
Wolfgang Huß
999bbd85c1 Add more slugification tests for 'CreateGroup' and 'UpdateGroup' 2022-09-02 08:11:40 +02:00
Wolfgang Huß
4f7ce5a6c1 Fix slugification tests of 'UpdateGroup' 2022-09-01 15:04:49 +02:00
Wolfgang Huß
44eb9d0bde Implement 'UpdateGroup' resolver, not working 2022-09-01 09:31:50 +02:00
Wolfgang Huß
2814f81ed5 Merge branch '5059-epic-groups' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5131-implement-update-group-resolver
# Conflicts:
#	backend/src/db/graphql/groups.js
#	backend/src/middleware/permissionsMiddleware.js
2022-08-31 09:21:08 +02:00
Wolfgang Huß
422d818133 !!! Temp !!! 2022-08-31 08:51:01 +02:00
Wolfgang Huß
fa2e92a363 Refine tests in 'slugifyMiddleware.spec.js' 2022-08-30 08:25:56 +02:00
Moriz Wahl
dd876c52fa increas max-old-space-size for jest, handle some asyncs, test validation for caregories only if categories are active 2022-08-15 10:52:31 +02:00
Wolfgang Huß
b0d28f8649 Rename 'descriptionAddition100' to 'descriptionAdditional100' 2022-08-10 13:19:42 +02:00
Wolfgang Huß
7682aa7e45 Fix description length for slugify tests 2022-08-10 11:34:51 +02:00
Wolfgang Huß
867b78dfa3 Implement 'Group' query, second step 2022-08-03 15:16:23 +02:00
Wolfgang Huß
520598c897 Implement 'description', 'groupType', and 'actionRadius' in 'CreateGroup' 2022-08-03 11:50:56 +02:00
Wolfgang Huß
2c402ba25b Fix linting 2022-08-03 08:22:53 +02:00
Wolfgang Huß
fc20143a65 Test groups creation in slugifyMiddleware 2022-08-03 07:51:29 +02:00
Wolfgang Huß
ce5161f937 Test e-mail templates, remain files, first step 2021-11-18 08:53:31 +01:00
Wolfgang Huß
62de9a158e Fix as quick fix for all reminding tests 2021-07-26 11:36:42 +02:00
Wolfgang Huß
7620d9b4da Fix linting to this new prettier 2021-07-20 18:30:43 +02:00
Moriz Wahl
b73e81d354 clean DB before all 2021-02-22 23:00:41 +01:00
roschaefer
276ea79e8f Update prettier to v2 2020-03-24 21:11:11 +01:00
ogerly
597913555e change: New Link, Learn how to setup the database 2020-02-20 23:17:20 +01:00
roschaefer
fa0e64b7cb Merge remote-tracking branch 'origin/master' into refactor_factories_with_rosie
There was a single step definition that created a post and a comment. I
would say let's put that in two different steps.
2020-02-01 13:33:07 +01:00
roschaefer
fc367297e3 Get rid of different factory files
..and fix some cypress tests
2020-01-28 23:12:50 +01:00
roschaefer
2fc71d75a5 Refactor factory for comments 2020-01-28 22:43:27 +01:00
roschaefer
95bfb090fd Refactor factory for posts 2020-01-28 22:43:26 +01:00
roschaefer
2a79c53765 Refactor user factory 2020-01-28 22:43:26 +01:00
roschaefer
b063847849 refactor: Make db:setup init stage of migrate 2020-01-20 11:00:52 +01:00
roschaefer
8f0ce19f09 Implement getDriver() and getNeode() the same way
I want to introduce `neode` and `neo4j-graphql-js` to my students and
saw this.
2019-12-05 21:00:24 +01:00
roschaefer
978347ba7b Tell github-linguists to ignore snapshots 2019-11-16 20:09:05 +01:00
roschaefer
86f9824c2e Fix lint 2019-09-12 23:13:20 +02:00
roschaefer
9233049ff3 Show a helpful message only if test fails
Inspired by the `ON FAIL` markup from the previous commit
0f2398295bcced3af3772bb4add1f42472c97893
2019-09-12 17:16:10 +02:00
Wolfgang Huß
0f2398295b Helper message for backend tests failed by missing constraints in database 2019-09-12 11:14:42 +02:00
mattwr18
77eb8274f3 Improve English grammar in test descriptions
- Fix typo
- use gender neutral pronoun
- fix third-person conjugation
2019-09-10 15:39:34 +02:00
roschaefer
0cd7ac3d32 Refactor slugifyMiddleware
* eliminate GraphQL from spec
* much better error handling
* add EmailAdress factory
2019-09-10 15:39:34 +02:00
ogerly
0bb71cfbb3 Specs tests run through cleanly 2019-08-23 11:02:24 +02:00
Matt Rider
29f39c4f45 Update backend tests
- Every test that created or updated a post needed to be updated to add categoryIds
2019-08-20 15:54:51 +02:00
Robert Schäfer
10ae4abaae Use neode to bring User mutations under control
This commit takes all backend changes for signup and invite feature. I
was working on these features and removed the generated mutations for
type user along the way.
2019-07-03 15:58:42 +02:00
Robert Schäfer
fc4e9f40b3 Whitelist queries/mutations, fix backend tests 2019-06-13 23:29:29 +02:00
edcc5adb41
corrected paths and include order 2019-06-03 23:11:48 +02:00
177e33c022
fixed spec include paths 2019-06-03 19:34:58 +02:00
cfd0975b24
backend linting 2019-05-23 19:23:03 +02:00
0be2891858
make email a required field for user, tests for front- & backend 2019-05-02 16:17:16 +02:00
Robert Schäfer
7a72185c9e Merging backend to master 2019-03-20 21:00:59 +01:00