Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Jun 15, 2024
1 parent 90f5ea7 commit 7c8e39d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/handlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
}
Expand Down

0 comments on commit 7c8e39d

Please sign in to comment.