This commit is contained in:
@@ -95,14 +95,14 @@ it('presents case decisions and ownership changes as readable history while pres
|
||||
'case.updated'
|
||||
)
|
||||
).toBe(
|
||||
'Title: Report → Appeal review\nAssigned to: Unassigned → Moderator\nStatus: Open → In review\nReviewing additional evidence'
|
||||
'Title: Report → Appeal review\nAssigned to: Unassigned → Moderator\nStatus: Open → In progress\nReviewing additional evidence'
|
||||
);
|
||||
expect(
|
||||
moderationEventDetail(
|
||||
JSON.stringify({ from: 'appeal_denied', reason: 'New evidence' }),
|
||||
'case.reopened'
|
||||
)
|
||||
).toBe('Previous outcome: Appeal denied\nNew evidence');
|
||||
).toBe('Previous status: Appeal denied\nNew evidence');
|
||||
expect(moderationEventDetail('Decision with {unusual text}', 'case.resolved')).toBe(
|
||||
'Decision with {unusual text}'
|
||||
);
|
||||
@@ -110,3 +110,14 @@ it('presents case decisions and ownership changes as readable history while pres
|
||||
moderationEventDetail(JSON.stringify({ count: 2, matchId: 42 }), 'case.evidence_attached')
|
||||
).toBe('2 archived chat entries attached from match #42.');
|
||||
});
|
||||
|
||||
it('explains migrated status without hiding the historical decision', () => {
|
||||
expect(
|
||||
moderationEventDetail(
|
||||
JSON.stringify({ from: 'warning_issued', to: 'closed' }),
|
||||
'case.status_migrated'
|
||||
)
|
||||
).toBe(
|
||||
'Previous status: Warning issued → Closed. Earlier decisions and actions are preserved.'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user