This commit is contained in:
@@ -164,7 +164,7 @@ it('links historical live actions to closed cases and exposes their real deliver
|
||||
const before = enforcement();
|
||||
await mutate(link(id, 2, 'action', warningId));
|
||||
const data = await detail(id, 'super_viewer');
|
||||
expect(data.case).toMatchObject({ status: 'no_action', revision: 3 });
|
||||
expect(data.case).toMatchObject({ status: 'closed', revision: 3 });
|
||||
expect(data.linkedActions).toMatchObject([{ id: warningId, kind: 'warn', state: 'confirmed' }]);
|
||||
expect(data.availableActions).toMatchObject([{ id: failedId, state: 'failed' }]);
|
||||
expect(data.events.map((event) => event.action)).toContain('action.confirmed');
|
||||
@@ -246,7 +246,7 @@ it('requires a linked confirmed warning for a cited warning outcome and preserve
|
||||
const before = enforcement();
|
||||
await mutate(resolve(5, 'action', confirmed));
|
||||
const data = await detail(id);
|
||||
expect(data.case).toMatchObject({ status: 'warning_issued', revision: 6 });
|
||||
expect(data.case).toMatchObject({ status: 'closed', revision: 6 });
|
||||
expect(JSON.parse(data.events[0].detail)).toEqual({
|
||||
reason: 'Decision after evidence review',
|
||||
actionReference: { type: 'action', id: confirmed }
|
||||
@@ -268,7 +268,7 @@ it('allows a historical expired restriction created from the original case to su
|
||||
reason: 'Earlier mute addressed the incident',
|
||||
actionReference: { type: 'restriction', id: sanction.id }
|
||||
});
|
||||
expect((await detail(id)).case.status).toBe('restriction_applied');
|
||||
expect((await detail(id)).case.status).toBe('closed');
|
||||
expect(enforcement()).toEqual(before);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user