fix tests

This commit is contained in:
Jacob Nguyen
2024-06-14 20:31:05 -05:00
parent 90f5ea7bda
commit 7c8e39defb

View File

@@ -57,8 +57,13 @@ vi.mock('discord.js', async (importOriginal) => {
function createRandomPlugin (s: 'go', mut?: Partial<Module>) {
return CommandInitPlugin(({ module }) => {
if(mut) {
Object.entries(mut).forEach(([k, v]) => {
module[k] = v
})
}
return s == 'go'
? controller.next(mut)
? controller.next()
: controller.stop()
})
}