style: apply prettier formatting
This commit is contained in:
@@ -868,7 +868,9 @@ describe('paired room registration', () => {
|
||||
|
||||
expect(getExplicitRoomMode('dc:explicit-tribunal')).toBe('tribunal');
|
||||
expect(getEffectiveRoomMode('dc:explicit-tribunal')).toBe('tribunal');
|
||||
expect(getEffectiveRuntimeRoomMode('dc:explicit-tribunal')).toBe('tribunal');
|
||||
expect(getEffectiveRuntimeRoomMode('dc:explicit-tribunal')).toBe(
|
||||
'tribunal',
|
||||
);
|
||||
expect(isPairedRoomJid('dc:explicit-tribunal')).toBe(true);
|
||||
|
||||
clearExplicitRoomMode('dc:explicit-tribunal');
|
||||
|
||||
@@ -1991,7 +1991,9 @@ function canRunTribunalFromRegisteredAgentTypes(
|
||||
|
||||
export function getEffectiveRuntimeRoomMode(chatJid: string): RoomMode {
|
||||
return getEffectiveRoomMode(chatJid) === 'tribunal' &&
|
||||
canRunTribunalFromRegisteredAgentTypes(getRegisteredAgentTypesForJid(chatJid))
|
||||
canRunTribunalFromRegisteredAgentTypes(
|
||||
getRegisteredAgentTypesForJid(chatJid),
|
||||
)
|
||||
? 'tribunal'
|
||||
: 'single';
|
||||
}
|
||||
|
||||
@@ -35,12 +35,12 @@ export function buildRoomRoleContext(
|
||||
preferredRole && matches[preferredRole]
|
||||
? preferredRole
|
||||
: matches.arbiter
|
||||
? 'arbiter'
|
||||
: matches.owner
|
||||
? 'owner'
|
||||
: matches.reviewer
|
||||
? 'reviewer'
|
||||
: null;
|
||||
? 'arbiter'
|
||||
: matches.owner
|
||||
? 'owner'
|
||||
: matches.reviewer
|
||||
? 'reviewer'
|
||||
: null;
|
||||
|
||||
if (!role) {
|
||||
return undefined;
|
||||
|
||||
@@ -136,7 +136,9 @@ describe('service-routing global failover', () => {
|
||||
});
|
||||
setExplicitRoomMode('dc:explicit-tribunal-codex', 'tribunal');
|
||||
|
||||
expect(getEffectiveChannelLease('dc:explicit-tribunal-codex')).toMatchObject({
|
||||
expect(
|
||||
getEffectiveChannelLease('dc:explicit-tribunal-codex'),
|
||||
).toMatchObject({
|
||||
chat_jid: 'dc:explicit-tribunal-codex',
|
||||
owner_service_id: 'codex-main',
|
||||
reviewer_service_id: null,
|
||||
|
||||
Reference in New Issue
Block a user