mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
Fix test
This commit is contained in:
@@ -211,7 +211,7 @@ describe("fileContextReducer — silent CONSUME_FILES (background enforcement)",
|
||||
|
||||
it("carries classificationConfidence forward with the labels", () => {
|
||||
// The confidence is part of the verdict: without it the escalation decision
|
||||
// (shouldDispatchToAi) dies at the version boundary and a chained
|
||||
// (localVerdictNeedsEscalation) dies at the version boundary and a chained
|
||||
// classification never runs.
|
||||
const start = stateWith([
|
||||
stub("a", {
|
||||
|
||||
@@ -390,8 +390,8 @@ export function fileContextReducer(
|
||||
// tool that versions/derives a classified file keeps it in its label
|
||||
// groups instead of dropping to "Other" and waiting on a PDF re-read.
|
||||
// Inherited from the first input that has labels, together with that
|
||||
// verdict's confidence - the escalation decision (shouldDispatchToAi) is
|
||||
// about the document, not about which step produced the current bytes, so
|
||||
// verdict's confidence - the escalation decision (localVerdictNeedsEscalation)
|
||||
// is about the document, not about which step produced the current bytes, so
|
||||
// it must survive the version boundary. An output that already carries its
|
||||
// own verdict (e.g. a fresh classify result) keeps it.
|
||||
const verdictDonor = inputFileIds
|
||||
|
||||
@@ -31,6 +31,7 @@ vi.mock("@app/hooks/usePolicies", () => ({
|
||||
policies: {
|
||||
security: {
|
||||
configured: true,
|
||||
runsOnEditor: true,
|
||||
status: "active",
|
||||
backendId: "backend-security",
|
||||
runOn: "upload",
|
||||
|
||||
Reference in New Issue
Block a user