fix: various fixes to sentry-reported errors

This commit is contained in:
Hampus Kraft 2026-02-21 01:32:04 +00:00
parent c670406751
commit 0e7f370a1e
No known key found for this signature in database
GPG Key ID: 6090864C465A454D
2 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,7 @@ describe('ChannelMoveOperation', () => {
position: 1, position: 1,
}); });
}); });
it('returns null when dropping to the same effective placement', () => { it('returns null when dropping to the same effective placement', () => {
const category = createChannel({id: 'category', type: ChannelTypes.GUILD_CATEGORY, position: 0}); const category = createChannel({id: 'category', type: ChannelTypes.GUILD_CATEGORY, position: 0});
const textOne = createChannel({ const textOne = createChannel({

View File

@ -440,6 +440,7 @@ describe('Guild Channel Positions', () => {
expect(frontDoorIndex).toBeGreaterThan(milsimsIndex); expect(frontDoorIndex).toBeGreaterThan(milsimsIndex);
expect(frontDoorIndex).toBeLessThan(coopGamesIndex); expect(frontDoorIndex).toBeLessThan(coopGamesIndex);
}); });
test('should reject text channels being positioned below voice channels via preceding_sibling_id', async () => { test('should reject text channels being positioned below voice channels via preceding_sibling_id', async () => {
const account = await createTestAccount(harness); const account = await createTestAccount(harness);
const guild = await createGuild(harness, account.token, 'Test Guild'); const guild = await createGuild(harness, account.token, 'Test Guild');