90 Commits

Author SHA1 Message Date
elweyn
96feb30476 Deconstruct the listAllContributions test. 2023-02-09 16:08:57 +01:00
elweyn
bcf63ec334 Deconstruct test for listContributions. 2023-02-09 15:02:53 +01:00
elweyn
712b64fd06 Add destructure for denyContribution tests. 2023-02-08 14:25:48 +01:00
elweyn
4cbfd83d5e Add deconstructing variables for updateContribution. 2023-02-08 11:51:09 +01:00
elweyn
65488b5c5c Test of createContribution are now centered on the final object. 2023-02-08 11:29:38 +01:00
elweyn
46e8a55d2e remove unused variable raeuber. 2023-02-06 09:48:20 +01:00
elweyn
b7343fdc3e Add test user raeuber hotzenplotz and deny already confirmed, deleted or denied contributions. 2023-02-06 09:25:44 +01:00
elweyn
0575c513c4 End refactoring of ContributionResolver.test. 2023-02-06 08:01:29 +01:00
elweyn
4f0cfb9363 Change structure of tests so that we create every data needed beforeAll unit tests. 2023-02-03 13:55:08 +01:00
Hannes Heine
d40114df69
Merge branch 'master' into refactor-deny-contribution-unit-test 2023-02-02 15:19:56 +01:00
Hannes Heine
c659264e82
Update backend/src/graphql/resolver/ContributionResolver.test.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2023-02-02 09:18:16 +01:00
Hannes Heine
676c6b2e7e
Update backend/src/graphql/resolver/ContributionResolver.test.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2023-02-02 09:14:48 +01:00
Hannes Heine
27b54555ea
Update backend/src/graphql/resolver/ContributionResolver.test.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2023-02-02 09:14:37 +01:00
Hannes Heine
44dabe0486
Update backend/src/graphql/resolver/ContributionResolver.test.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2023-02-02 09:14:24 +01:00
Hannes Heine
55e830ee8d
Update backend/src/graphql/resolver/ContributionResolver.test.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2023-02-02 09:14:04 +01:00
elweyn
f3f749889f Add Test for denyContribution. 2023-01-31 13:24:59 +01:00
elweyn
787b2b9552 Add test for value null in statusFilter array. 2023-01-31 11:38:37 +01:00
elweyn
c63e6fd474 Add tests for listAllContributions statusFilter parameter. 2023-01-31 11:10:02 +01:00
elweyn
d5605d3afb Add test for error case wrong statusFilter value. 2023-01-28 08:36:46 +01:00
elweyn
0bd3ce27df Change Tests to statusFilter. 2023-01-25 16:48:49 +01:00
elweyn
9e7da0f451 Add tests for filterState parameter in listAllContributions query. 2023-01-25 08:11:47 +01:00
elweyn
47eea57c09 Remove unused import. 2023-01-25 08:00:34 +01:00
elweyn
cc0fe5968d Tests that the filterState parameter in listAllContributions works as expected. 2023-01-25 07:54:17 +01:00
elweyn
2cecadded2 Add filterState to the backend test listAllContributions query. 2023-01-24 17:02:08 +01:00
Moriz Wahl
52f9da5c0d fix(backend): admin cannot delete confirmed contribution 2023-01-18 15:06:18 +01:00
Moriz Wahl
8f9e77a9c1 add test: confirming a confirmed contribution throws 2023-01-11 21:40:11 +01:00
Moriz Wahl
6389697bd6 reset unit tests 2023-01-11 21:13:38 +01:00
340554b815
skipped alot of test due to unknown timeout errors 2023-01-11 15:39:33 +01:00
Moriz Wahl
e009fcb87d
Merge branch 'master' into seed-contributions 2023-01-09 14:49:21 +01:00
Moriz Wahl
cb55da5d32 confirming two contributions at once does not throw anymore 2022-12-15 15:58:02 +01:00
a8995914f3
Merge branch 'master' into seed-contributions
# Conflicts:
#	backend/src/graphql/resolver/AdminResolver.test.ts
2022-12-15 15:40:39 +01:00
7638d29052
merge 2022-12-09 14:09:43 +01:00
7b2e6730bd
lint fixes 2022-11-23 23:44:43 +01:00
a2c1b0ff96
separate AdminResolver.test into the corresponding parts 2022-11-23 22:52:22 +01:00
joseji
16699e19ad small details 2022-10-31 14:46:52 +01:00
joseji
f69abcd04c small tests modified 2022-10-28 11:46:18 +02:00
joseji
9846e095bf logger now mocked propperly 2022-10-28 11:22:58 +02:00
joseji
cbdb68f385 missed 1 decimal check on tests 2022-10-17 23:22:04 +02:00
joseji
7d17735d7f decimals from db tested propperly and merged master 2022-10-14 13:05:00 +02:00
Wolfgang Huß
98e64ed867 Merge branch 'master' of github.com:gradido/gradido into disable-change-month-for-contribution-updates 2022-10-13 10:10:03 +02:00
Moriz Wahl
bc2889a9f8 fix: Disable Change of Month for Update Contribution (wallet and admin) 2022-10-11 20:44:41 +02:00
joseji
d799eecada added contributionId and amount to some tests 2022-10-11 12:11:18 +02:00
joseji
7061718c1f all conversations solved 2022-09-29 12:20:08 +02:00
joseji
744c961c0b fixed tests with new log message 2022-09-23 19:33:54 +02:00
joseji
60d2e2ff7b fixed contribution delete event saving and testing 2022-09-23 18:46:40 +02:00
joseji
79f7ebce57 updated event working, deletion is not working properly (deeper than the event itself) 2022-09-22 17:35:41 +02:00
elweyn
4461ff92a5 Correct tests after changing login and logout from queries to mutations. 2022-09-22 12:22:56 +02:00
joseji
0176131c39 errors are now logged, and events are checked 2022-09-22 12:07:12 +02:00
joseji
c08aac58a9 events and half log tests 2022-09-22 11:44:30 +02:00
elweyn
bcb0882a06 Add test to updateContribution check if error is thrown when memo length is smaller than 5 or greater than 255 characters. 2022-07-25 11:23:28 +02:00