refactor(tools): remove redundant limits and acknowledgements
This commit is contained in:
@@ -10,7 +10,7 @@ import { analyzeJavaScriptApplicationInputSchema } from "../../../src/domain/jav
|
||||
import { writeElectronBoundaryFixture } from "../../fixtures/electronBoundaryApplication.js";
|
||||
|
||||
describe("static Electron application analysis", () => {
|
||||
it("accepts a caller path and caller-selected analysis bounds", () => {
|
||||
it("accepts an absolute caller path without caller-selected analysis bounds", () => {
|
||||
expect(
|
||||
analyzeJavaScriptApplicationInputSchema.safeParse({
|
||||
input_path: "relative/app.asar",
|
||||
@@ -24,20 +24,14 @@ describe("static Electron application analysis", () => {
|
||||
expect(
|
||||
analyzeJavaScriptApplicationInputSchema.safeParse({
|
||||
input_path: "/tmp/app.asar",
|
||||
limits: {
|
||||
max_entries: 100_000,
|
||||
max_findings: 200_000,
|
||||
},
|
||||
limits: { max_findings: 200_000 },
|
||||
}).success,
|
||||
).toBe(true);
|
||||
).toBe(false);
|
||||
expect(
|
||||
analyzeJavaScriptApplicationInputSchema.parse({
|
||||
input_path: "/tmp/app.asar",
|
||||
}),
|
||||
).toMatchObject({
|
||||
format: "auto",
|
||||
limits: { max_findings: 8_000 },
|
||||
});
|
||||
).toEqual({ input_path: "/tmp/app.asar", format: "auto" });
|
||||
});
|
||||
|
||||
it("maps windows, preload, contextBridge, IPC, validations, utility, and native boundaries without execution", async () => {
|
||||
|
||||
Reference in New Issue
Block a user