This commit is contained in:
@@ -94,7 +94,7 @@ it('preserves current and historical assessments with case revisions, including
|
||||
};
|
||||
await mutate(assess(id, 3, updated), 'admin');
|
||||
const data = await detail(id, 'super_viewer');
|
||||
expect(data.case).toMatchObject({ revision: 4, status: 'no_action' });
|
||||
expect(data.case).toMatchObject({ revision: 4, status: 'closed' });
|
||||
expect(data.assessment).toEqual({
|
||||
...updated,
|
||||
revision: 4,
|
||||
@@ -253,8 +253,8 @@ it('adds assessment storage to an existing database without altering case record
|
||||
)
|
||||
.run(clock, clock);
|
||||
const before = legacy.prepare('SELECT * FROM moderation_cases').all();
|
||||
runMigrations(legacy, migrations);
|
||||
runMigrations(legacy, migrations);
|
||||
runMigrations(legacy, migrations.slice(0, 32));
|
||||
runMigrations(legacy, migrations.slice(0, 32));
|
||||
expect(legacy.prepare('SELECT * FROM moderation_cases').all()).toMatchObject(before);
|
||||
const insert = legacy.prepare(
|
||||
'INSERT INTO moderation_case_assessments VALUES(?,?,?,?,?,?)'
|
||||
|
||||
Reference in New Issue
Block a user