Aster Fialla
db8f2c59de
adjusted importHelper to properly test throwing of aggregate error
2026-02-24 22:29:03 -05:00
Aster Fialla
dd21ed564b
changed getAllMembersInfo map to say index not name as it actually gets the index of a member and then the member object
2026-02-24 21:26:42 -05:00
Aster Fialla
d226238e14
adjusted tests to properly use mockRejectedValue for async rejections
2026-02-24 21:08:04 -05:00
Aster Fialla
5050f98e8f
pushes e.message instead of full error object to errors array in importHelper
2026-02-24 20:38:39 -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
545136bec7
added default case to memberCommandHandler to throw error if command is not recognized
2026-02-24 20:38:39 -05:00
Aster Fialla
b02937a660
getAllMembersInfo checks for fields.length
2026-02-24 20:38:39 -05:00
Aster Fialla
6d82a067a1
Got rid of unnecessary check for empty message from user (Fluxer doesn't allow this to happen)
...
Removed export of token
2026-02-24 20:38:37 -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
15d2f7d79d
updated console.error message in database.js
2026-02-24 20:02:32 -05:00
Aster Fialla
ba2274e5be
changed commands.js to not have user interaction within the catch
2026-02-24 20:02:11 -05:00
Aster Fialla
de674281f9
make memberCommand exit when error occurs with parseMemberCommand
2026-02-24 19:54:10 -05:00
Aster Fialla
102d694240
Simplify getWebhook to use .find() instead of foreach logic
2026-02-24 19:52:29 -05:00
Aster Fialla
fb878222dd
removed unnecessary try/catch from utils
2026-02-24 19:49:59 -05:00
Aster Fialla
a1e007448f
changed utils to check for 10MB size not 1MB
2026-02-24 19:47:46 -05:00
Aster Fialla
efefcb69f4
added the remaining webhook tests
2026-02-24 18:58:45 -05:00
Aster Fialla
ad783ae6b7
added dash to commands.js and test to pass
2026-02-24 18:48:59 -05:00
Aster Fialla
664295e4a5
refactored database to not use then/catch
2026-02-24 18:12:43 -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
34cb8f3cdb
converted utils.js to not use then/catch
2026-02-24 16:58:56 -05:00
Aster Fialla
8d946ce921
put console.error in commands
2026-02-24 16:58:39 -05:00
Aster Fialla
8919fce34f
removed console.log from import helper
2026-02-24 16:56:03 -05:00
Aster Fialla
15a040d1d1
forgot to switch over some tests in bot.test and commands.test
2026-02-24 16:55:51 -05:00
Aster Fialla
6470b223f6
fixed typo in webhookHelper
2026-02-24 16:41:00 -05:00
Aster Fialla
5d8ff9c6c6
one more test in commands.js, and removed console.error
2026-02-24 16:22:38 -05:00
Aster Fialla
2bf218683a
edited bot to have top level main function
2026-02-24 16:18:40 -05:00
Aster Fialla
8b8cdd6d12
fixed set up for commands tests
2026-02-24 15:57:33 -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
c19614b6a1
refactoring commands.js and tests to not use then/catch
2026-02-24 14:50:46 -05:00
Aster Fialla
b4e4e5a951
refactoring bot and tests to not use then/catch
2026-02-24 14:13:48 -05:00
Aster Fialla
5ba5435d46
changed docstring
2026-02-24 13:56:46 -05:00
Aster Fialla
fc58c47b03
refactor webhookHelper and tests to not use then/catch
2026-02-24 13:56:37 -05:00
Aster Fialla
a0f62763af
Merge branch 'main' of https://github.com/pieartsy/PluralFlux into refactor-async-await
...
# Conflicts:
# src/helpers/importHelper.js
# tests/helpers/importHelper.test.js
2026-02-24 12:43:52 -05:00
7fead5e3d7
feat: Add unit tests ( #21 )
...
Tests are mostly complete (though some are failing -- to be fixed in the
async/await refactor.
Also refactored, fixed bugs found while testing, and added ability to
type `pf;m` instead of `pf;member`.
---------
Co-authored-by: Aster Fialla <asterfialla@gmail.com >
2026-02-24 12:42:23 -05:00
Aster Fialla
8318d715ad
added enum
2026-02-24 12:39:42 -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
123aabf650
documentation: adjusted docstrings
2026-02-24 10:37:02 -05:00
428310dfad
Delete .github/workflows/node.js.yml ( #20 )
...
Since we're moving to local DevOps, this is no longer required. Also it
was broken.
2026-02-24 09:30:27 -05:00
dc0de4b092
Update README.md
...
added LLM note
2026-02-24 09:23:07 -05:00
6898e3142c
Create CONTRIBUTING.md
2026-02-24 09:16:55 -05:00
Aster Fialla
3c7dfcb72b
update enums
2026-02-23 15:55:01 -05:00
Aster Fialla
9059c63747
mostly finished command tests
2026-02-23 15:54:45 -05:00
Aster Fialla
6937d7b694
made import error not a PDF again
2026-02-23 15:51:12 -05:00
Aster Fialla
e31d9c2881
removed now-unneeded .toJSON() for embeds
2026-02-23 15:20:39 -05:00
Aster Fialla
654338f88e
removed duplicate text from importHelper
2026-02-23 15:11:10 -05:00
Aster Fialla
2a2de70b46
starting commands tests
2026-02-23 15:10:57 -05:00
Aster Fialla
7dfc949b63
separated out commands to be more easily testable and added functionality for aliases
2026-02-23 15:10:48 -05:00