Commit Graph

68 Commits

Author SHA1 Message Date
Aster Fialla
db8f2c59de adjusted importHelper to properly test throwing of aggregate error 2026-02-24 22:29:03 -05:00
Aster Fialla
d226238e14 adjusted tests to properly use mockRejectedValue for async rejections 2026-02-24 21:08:04 -05:00
Aster Fialla
dad80bd385 reversed check for valid proxy (was returning valid if the proxy existed and invalid if it didn't) 2026-02-24 20:38:39 -05:00
Aster Fialla
1d9d9600e5 replaced "pk;" with "pf;" in test 2026-02-24 20:08:52 -05:00
Aster Fialla
c7d5f8a341 made importHelper mock throw error instead of "resolve" error 2026-02-24 20:05:29 -05:00
Aster Fialla
efefcb69f4 added the remaining webhook tests 2026-02-24 18:58:45 -05:00
Aster Fialla
ded5910a7c removed jest-fetch-mock since it turns out I was just manually mocking it anyway 2026-02-24 18:06:13 -05:00
Aster Fialla
cdf5c6e537 tested utils checkImageFormatValidity 2026-02-24 18:04:15 -05:00
Aster Fialla
5a91a529b1 removing then/catch from messageHelper.test.js 2026-02-24 15:47:30 -05:00
Aster Fialla
b36a3ae236 refactoring memberHelper.js and tests to not use then/catch 2026-02-24 15:43:43 -05:00
Aster Fialla
fc58c47b03 refactor webhookHelper and tests to not use then/catch 2026-02-24 13:56:37 -05:00
Aster Fialla
971638bfe3 refactored async/await for import helper to not also use then/catch 2026-02-24 12:39:37 -05:00
Aster Fialla
654338f88e removed duplicate text from importHelper 2026-02-23 15:11:10 -05:00
Aster Fialla
bb99ee7ef1 structure for utils test edited a bit 2026-02-23 13:38:38 -05:00
Aster Fialla
daf23b2f5d adding import tests 2026-02-23 13:36:31 -05:00
Aster Fialla
813e893afb more accurate framework for utils tests 2026-02-23 12:30:40 -05:00
Aster Fialla
91e98f2434 fixed bug with memberHelper not processing attached URL 2026-02-23 11:35:01 -05:00
Aster Fialla
c752ee2bf2 Revert "adding debounce" cus it's not working
This reverts commit 1d27db960c.

# Conflicts:
#	src/bot.js
2026-02-23 11:19:26 -05:00
Aster Fialla
0f65db2d42 add frameworks for other tests 2026-02-23 09:00:48 -05:00
Aster Fialla
da79db856a removed unneeded imports from messageHelper tests 2026-02-23 08:59:56 -05:00
Aster Fialla
1d27db960c adding debounce 2026-02-23 08:47:27 -05:00
Aster Fialla
580a0cb42e renaming test interpolation to be less silly 2026-02-23 07:53:03 -05:00
Aster Fialla
d9530a2ccf structure and test revamp for memberHelper 2026-02-23 00:18:14 -05:00
Aster Fialla
72ec047f48 test frame for utils 2026-02-22 21:40:53 -05:00
Aster Fialla
be24034d48 updating tests and memberHelper to try and make parseMemberCommand less bloated/broken (not working ATM) 2026-02-22 21:40:42 -05:00
Aster Fialla
7dae9f52b1 fixed call to getMemberInfo to not include authorId 2026-02-22 18:32:47 -05:00
Aster Fialla
630ce7888c adjusted parsing logic to not try and call member when none exists (due to "new" command) 2026-02-22 18:06:18 -05:00
Aster Fialla
fa4ca779ee accidental error with memberHelper not allowing pf;member fixed 2026-02-22 11:52:51 -05:00
Aster Fialla
eb7340faf7 finished relevant tests for memberHelper 2026-02-22 11:24:57 -05:00
Aster Fialla
cc8cb6e925 write more tests for addNewMember 2026-02-21 23:05:01 -05:00
Aster Fialla
a797e9e06d write more tests for parseMemberCommand 2026-02-21 21:37:57 -05:00
Aster Fialla
4146591c90 figured out issue (was missing return value) 2026-02-21 20:09:39 -05:00
Aster Fialla
0bca359b7f trying to get refactored memberhelper to pass tests -_- 2026-02-20 11:28:28 -05:00
Aster Fialla
e7198230a7 updated member helper and tests 2026-02-19 20:08:26 -05:00
Aster Fialla
849acf7275 update message helper test to include space case 2026-02-19 18:54:35 -05:00
Aster Fialla
2e0a8adec5 added tests for updateDisplayName 2026-02-19 01:31:38 -05:00
Aster Fialla
7aeae1837f added todo note 2026-02-19 00:59:57 -05:00
Aster Fialla
9dab429d0d , updated tests for webhookHelper and removed error response when proxy is sent without content 2026-02-19 00:51:33 -05:00
Aster Fialla
f9199f8477 removed error response when proxy is sent without content 2026-02-19 00:48:57 -05:00
Aster Fialla
21efbccfd7 adding more cases to messageHelper tests 2026-02-19 00:20:46 -05:00
Aster Fialla
873959a5f4 finally mocking correctly 2026-02-18 21:24:41 -05:00
Aster Fialla
75c4c548d8 deleted extra file added during merge 2026-02-18 21:13:25 -05:00
Aster Fialla
9d5493e8ab Merge remote-tracking branch 'origin/add-tests' into add-tests
# Conflicts:
#	src/bot.js
#	src/commands.js
#	src/database.js
#	src/helpers/importHelper.js
#	src/helpers/memberHelper.js
#	src/helpers/messageHelper.js
#	src/helpers/webhookHelper.js
2026-02-18 21:03:44 -05:00
Aster Fialla
fc1c463696 more tests for webhookhelper 2026-02-18 17:14:04 -05:00
Aster Fialla
acd9ce7c3e more cases for messageHelper just in case 2026-02-18 16:28:35 -05:00
Aster Fialla
da9a3d2c8a finished tests for messageHelper! 2026-02-18 12:37:39 -05:00
Aster Fialla
274f1ead15 added "return" so tests dont terminate on failure and deleted env.jest 2026-02-18 12:11:55 -05:00
Aster Fialla
223292c2d3 added tests for parseProxyTags and updated logic 2026-02-18 10:17:08 -05:00
Aster Fialla
152bc8873d added test for memberHelper 2026-02-18 09:16:26 -05:00
Aster Fialla
e16694ac2d fixed test and logic 2026-02-18 08:47:37 -05:00