mirror of
https://github.com/morluto/rea
synced 2026-10-26 22:28:27 -04:00
test: remove duplicate result assertions before throwing guards
This commit is contained in:
@@ -43,7 +43,6 @@ describe("JavaScript analysis cancellation before publication", () => {
|
||||
},
|
||||
);
|
||||
expect(requested).toBe(true);
|
||||
expect(result.ok).toBe(false);
|
||||
if (result.ok)
|
||||
throw new Error("Cancelled analysis must not publish Evidence");
|
||||
expect(projectAnalysisError(result.error)).toMatchObject({
|
||||
@@ -68,7 +67,6 @@ describe("JavaScript analysis cancellation before publication", () => {
|
||||
},
|
||||
},
|
||||
);
|
||||
expect(result.ok).toBe(false);
|
||||
if (result.ok) throw new Error("Expected cancellation before admission");
|
||||
expect(projectAnalysisError(result.error)).toMatchObject({
|
||||
details: { reason: "cancelled" },
|
||||
|
||||
Reference in New Issue
Block a user