mirror of
https://github.com/morluto/rea
synced 2026-10-28 23:11:11 -04:00
test: remove duplicate result assertions before throwing guards
This commit is contained in:
@@ -124,7 +124,6 @@ describe("ESM module URL decoding", () => {
|
||||
input_path: root,
|
||||
format: "directory",
|
||||
});
|
||||
expect(result.ok).toBe(true);
|
||||
if (!result.ok) throw result.error;
|
||||
const { graph } = javascriptApplicationAnalysisResultSchema.parse(
|
||||
result.value.normalized_result,
|
||||
@@ -235,7 +234,6 @@ describe("package exports URL paths", () => {
|
||||
input_path: root,
|
||||
format: "directory",
|
||||
});
|
||||
expect(result.ok).toBe(true);
|
||||
if (!result.ok) throw result.error;
|
||||
const { graph } = javascriptApplicationAnalysisResultSchema.parse(
|
||||
result.value.normalized_result,
|
||||
|
||||
Reference in New Issue
Block a user