mirror of
https://github.com/pieartsy/PluralFlux.git
synced 2026-04-14 12:05:28 +10:00
[PR #22] refactor: Removing then/catch from async/await calls #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pieartsy/PluralFlux/pull/22
Author: @pieartsy
Created: 2/25/2026
Status: 🔄 Open
Base:
main← Head:refactor-async-await📝 Commits (10+)
a3caa2dconverted import syntax to ES modules5a39610got test sort of working (jest set up is not crashing but also not mocking correctly)5e28cdfadjusted beforeeach/beforeall so more pass876f948more correct test setup5ab0d62converted import syntax to commonJSa44e274got test sort of working (jest set up is not crashing but also not mocking correctly)79d98c3adjusted beforeeach/beforeall so more pass0a4bfa5more correct test setup321fe7fmore correct dockerfile and compose.yaml35b454bRevert "converted import syntax to commonJS"📊 Changes
18 files changed (+886 additions, -910 deletions)
View changed files
📝
package-lock.json(+1 -76)📝
package.json(+1 -2)📝
src/bot.js(+14 -15)📝
src/commands.js(+37 -25)📝
src/database.js(+14 -12)📝
src/enums.js(+2 -1)📝
src/helpers/importHelper.js(+37 -22)📝
src/helpers/memberHelper.js(+59 -73)📝
src/helpers/messageHelper.js(+1 -2)📝
src/helpers/utils.js(+13 -5)📝
src/helpers/webhookHelper.js(+12 -19)📝
tests/bot.test.js(+94 -125)📝
tests/commands.test.js(+123 -96)📝
tests/helpers/importHelper.test.js(+36 -33)📝
tests/helpers/memberHelper.test.js(+219 -267)📝
tests/helpers/messageHelper.test.js(+16 -15)📝
tests/helpers/utils.test.js(+51 -3)📝
tests/helpers/webhookHelper.test.js(+156 -119)📄 Description
Removed unnecessary then/catch from async/await calls to simplify code. Also adding more tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.