mirror of
https://github.com/sern-handler/handler
synced 2026-06-18 05:42:15 +00:00
fix tests
This commit is contained in:
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user