(overrides = {})
| 10 | import { logger } from '../../src/utils/logger.js'; |
| 11 | |
| 12 | function createInteraction(overrides = {}) { |
| 13 | return { |
| 14 | guildId: 'guild-1', |
| 15 | user: { id: 'user-1' }, |
| 16 | ...overrides |
| 17 | }; |
| 18 | } |
| 19 | |
| 20 | test('detects risky commands by category and explicit name', () => { |
| 21 | assert.equal(isRiskyCommand({ category: 'moderation' }, 'ban'), true); |
no outgoing calls
no test coverage detected